Skip to content

Commit a56901f

Browse files
janjongboomsg-
authored andcommitted
Flash before debugging
1 parent cfd025f commit a56901f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tools/export/vscode/launch.tmpl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "cppdbg",
77
"request": "launch",
88
"program": "${workspaceRoot}/BUILD/${workspaceRootFolderName}.elf",
9-
"args": ["target", "remote", "localhost:3333", "load", "continue"],
9+
"args": [],
1010
"stopAtEntry": true,
1111
"cwd": "${workspaceRoot}",
1212
"environment": [],
@@ -17,6 +17,11 @@
1717
"filterStdout": false,
1818
"preLaunchTask": "make",
1919
"serverStarted": "GDB\\ server\\ started",
20+
"setupCommands": [
21+
{ "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
22+
{ "text": "-file-exec-and-symbols ${workspaceRoot}/BUILD/${workspaceRootFolderName}.elf", "description": "load file", "ignoreFailures": false},
23+
{ "text": "-target-download", "description": "flash target", "ignoreFailures": false }
24+
],
2025
"logging": {
2126
"moduleLoad": true,
2227
"trace": true,
@@ -27,13 +32,11 @@
2732
"linux": {
2833
"MIMode": "gdb",
2934
"MIDebuggerPath": "/usr/bin/arm-none-eabi-gdb",
30-
"MIDebuggerServerAddress": "localhost:3333",
3135
"debugServerPath": "/usr/local/bin/pyocd-gdbserver"
3236
},
3337
"osx": {
3438
"MIMode": "gdb",
3539
"MIDebuggerPath": "/Applications/yotta.app/Contents/Resources/prerequisites/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gdb",
36-
"MIDebuggerServerAddress": "localhost:3333",
3740
"debugServerPath": "/Library/Frameworks/Python.framework/Versions/2.7/bin/pyocd-gdbserver"
3841
},
3942
"windows": {

0 commit comments

Comments
 (0)