nim-nanovg/.vscode/launch.json
Joey Yakimowich-Payne 1a32967fae Add debug for sdl2 gpu
2020-04-26 16:06:32 -06:00

58 lines
No EOL
2.3 KiB
JSON

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
//
// For mac debugging, this homebrew formula must be used:
// https://raw.githubusercontent.com/Homebrew/homebrew-core/953092c0f17f9d2433ac1f099d91f96a56d4890e/Formula/gdb.rb
// There is some bug with gdb 8.3.1 and above, so 8.3 must be used
//
// Also, to get rid of Python unicode errors, set the following env vars in your .bashrc/.bash_profile
// export LANG="en_US.UTF-8"
// export LC_CTYPE="en_US.UTF-8"
"version": "0.2.0",
"configurations": [
{
"name": "Nim Debug GLFW",
"type": "gdb",
"request": "launch",
"valuesFormatting": "parseText",
"target": "${workspaceFolder}/build/demo/demo_glfw_debug",
"cwd": "${workspaceRoot}",
"gdbpath": "${workspaceFolder}/nim-gdb.bash",
"windows": {
"target": "${workspaceFolder}\\build\\demo\\demo_glfw_debug.exe",
"cwd": "${workspaceRoot}",
"gdbpath": "${workspaceFolder}\\nim-gdb.bat"
}
},
{
"name": "Nim Debug SDL2",
"type": "gdb",
"request": "launch",
"valuesFormatting": "parseText",
"target": "${workspaceFolder}/build/demosdl2/demo_sdl2_debug",
"cwd": "${workspaceRoot}",
"gdbpath": "${workspaceFolder}/nim-gdb.bash",
"windows": {
"target": "${workspaceFolder}\\build\\demosdl2\\demo_sdl2_debug.exe",
"cwd": "${workspaceRoot}",
"gdbpath": "${workspaceFolder}\\nim-gdb.bat",
}
},
{
"name": "Nim Debug SDL2 GPU",
"type": "gdb",
"request": "launch",
"valuesFormatting": "parseText",
"target": "${workspaceFolder}/build/demosdl2/demo_sdl2_gpu_debug",
"cwd": "${workspaceRoot}",
"gdbpath": "${workspaceFolder}/nim-gdb.bash",
"windows": {
"target": "${workspaceFolder}\\build\\demosdl2\\demo_sdl2_gpu_debug.exe",
"cwd": "${workspaceRoot}",
"gdbpath": "${workspaceFolder}\\nim-gdb.bat",
}
}
]
}