Last active
April 5, 2023 23:25
-
-
Save Eriarer/be4b9713c13a5002916e0497b91c0766 to your computer and use it in GitHub Desktop.
Super basic Tasks.json to debug and run (compatible with extension Tasks) I will try to improve it, any ideas and ways to improve this json will be recipt (like mkdir excecute once but if it exist that it does nothing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "FolderExistDebug", | |
"type": "shell", | |
"command": "mkdir ${fileDirname}/output || echo \"Debugging\"", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"hide": true, | |
}, | |
{ | |
"label": "Debug nasm x32", | |
"type": "shell", | |
"command": " nasm -f elf32 ${file} -o ${fileDirname}/output/${fileBasenameNoExtension}.o -g -F dwarf && cd ${fileDirname}/output && gcc -m32 ${fileBasenameNoExtension}.o -o ${fileBasenameNoExtension} -no-pie && gdb ${fileBasenameNoExtension}", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"dependsOn": [ | |
"FolderExistDebug" | |
], | |
}, | |
{ | |
"label": "FolderEsxistCompile", | |
"type": "shell", | |
"command": "mkdir ${fileDirname}/output || echo \"Compiling\"", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"hide": true, | |
}, | |
{ | |
"label": "Compile & Run nasm x32", | |
"type": "shell", | |
"command": "nasm -f elf32 ${file} -o ${fileDirname}/output/${fileBasenameNoExtension}.o && gcc -m32 ${fileDirname}/output/${fileBasenameNoExtension}.o -o ${fileDirname}/output/${fileBasenameNoExtension} -no-pie && cd ${fileDirname}/output && ./${fileBasenameNoExtension}", | |
"dependsOn": [ | |
"FolderEsxistCompile" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment