Skip to content

Commit

Permalink
allow native and wsl debugging from windows instances
Browse files Browse the repository at this point in the history
  • Loading branch information
g3gg0 committed Aug 19, 2023
1 parent cd33332 commit 49dcf3a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 6 deletions.
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,34 @@
"MIMode": "gdb",
},
},
{
"name": "[wsl] teddyCloud",
"type": "cppdbg",
"request": "launch",
"program": "bin/teddycloud",
"args": [],
"cwd": ".",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"pipeTransport": {
"pipeProgram": "wsl",
"pipeArgs": [ "--cd", "${workspaceFolder}", "-e", "bash", "-c" ]
},
"preLaunchTask": "[wsl] build",
"logging": {
"programOutput": true,
"engineLogging": true,
"trace": false,
"traceResponse": false,
"exceptions": false
}
},
{
"name": "[win32] teddyCloud",
"type": "cppvsdbg",
Expand Down
35 changes: 29 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
"tasks": [
{
"label": "build",
"group": {
"kind": "build",
"isDefault": true
},
"group": "build",
"command": "make build",
"type": "shell",
"problemMatcher": []
Expand All @@ -46,14 +43,40 @@
"problemMatcher": []
},
{
"label": "[win32] build",
"label": "[wsl] build",
"group": {
"kind": "build",
"isDefault": true
},
"type": "process",
"command": "bash",
"args": [
"-c", "make build"
]
},
{
"label": "[wsl] clean",
"group": {
"kind": "build",
"isDefault": false
},
"type": "process",
"command": "bash",
"args": [
"-c", "make clean"
]
},
{
"label": "[win32] build",
"group": {
"kind": "build",
"isDefault": true
},
"command": "make PLATFORM=windows build",
"type": "shell",
"problemMatcher": ["$msCompile"],
"problemMatcher": [
"$msCompile"
]
},
{
"label": "[win32] clean",
Expand Down

0 comments on commit 49dcf3a

Please sign in to comment.