Skip to content

Commit eff329d

Browse files
janjongboomsg-
authored andcommitted
Debugging on Windows (although path issues)
1 parent 842a0cd commit eff329d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tools/export/vscode/launch.tmpl

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"stopAtEntry": true,
1111
"cwd": "${workspaceRoot}",
1212
"environment": [],
13-
"externalConsole": true,
13+
"externalConsole": false,
1414
"debugServerArgs": "",
15-
"serverLaunchTimeout": 10000,
15+
"serverLaunchTimeout": 20000,
1616
"filterStderr": true,
1717
"filterStdout": false,
1818
"preLaunchTask": "make",
@@ -40,7 +40,14 @@
4040
"debugServerPath": "/usr/local/bin/pyocd-gdbserver"
4141
},
4242
"windows": {
43-
"MIMode": "gdb"
43+
"MIMode": "gdb",
44+
"MIDebuggerPath": "${workspaceRoot}\\.vscode\\bin\\windows\\gcc\\arm-none-eabi-gdb.exe",
45+
"debugServerPath": "${workspaceRoot}\\.vscode\\bin\\windows\\gdb_server.exe",
46+
"setupCommands": [
47+
{ "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
48+
{ "text": "-file-exec-and-symbols z:\\\\mbed-os-example-blinky\\\\BUILD\\\\${workspaceRootFolderName}.elf", "description": "load file", "ignoreFailures": false},
49+
{ "text": "-target-download", "description": "flash target", "ignoreFailures": false }
50+
]
4451
}
4552
}
4653
]

0 commit comments

Comments
 (0)