Updated build/debug configs

This commit is contained in:
Scott Wadden 2022-05-25 07:14:01 -03:00
parent cd27608b4d
commit ff59869126
3 changed files with 46 additions and 1 deletions

2
.gitignore vendored
View File

@ -8,10 +8,12 @@
*.dylib
*.dll
bin/
scratch/
tools/build_helpers
tools/build_helpers.exe
logs/
*.exe
*.out
app/.import

12
.vscode/launch.json vendored
View File

@ -9,7 +9,7 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"name": "Debug Enu",
"program": "${workspaceFolder}/vendor/godot/bin/godot.osx.opt.tools.arm64",
"windows": {
"program": "${workspaceFolder}/vendor/godot/bin/godot.windows.opt.tools.64"
@ -18,6 +18,16 @@
"cwd": "${workspaceFolder}/app",
"preLaunchTask": "Build enu",
"initCommands": ["command source ${workspaceRoot}/.lldbinit"]
},
{
"type": "lldb",
"request": "launch",
"name": "Debug Current file",
"program": "${relativeFileDirname}/${fileBasenameNoExtension}",
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "Build Current File",
"initCommands": ["command source ${workspaceRoot}/.lldbinit"]
}
]
}

33
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,33 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build enu",
"command": "nimble",
"args": ["build", "--debugger:native"],
"options": {
"cwd": "${workspaceRoot}"
},
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Current File",
"command": "nim",
"args": ["c", "--debugger:native", "${relativeFile}"],
"options": {
"cwd": "${workspaceRoot}"
},
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}