File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,6 @@ export class CmsisDebugSession extends GDBDebugSession {
240
240
await mi . sendTargetAsyncOn ( this . gdb ) ;
241
241
await mi . sendTargetSelectRemote ( this . gdb , remote ) ;
242
242
await mi . sendMonitorResetHalt ( this . gdb ) ;
243
- await this . gdb . sendEnablePrettyPrint ( ) ;
244
243
this . sendEvent ( new OutputEvent ( `Attached to debugger on port ${ port } ` ) ) ;
245
244
246
245
// Download image
@@ -251,6 +250,10 @@ export class CmsisDebugSession extends GDBDebugSession {
251
250
this . gdbServer . off ( 'progress' , progressListener ) ;
252
251
progressListener ( 100 ) ;
253
252
253
+ // Halt after image download
254
+ await mi . sendMonitorResetHalt ( this . gdb ) ;
255
+ await this . gdb . sendEnablePrettyPrint ( ) ;
256
+
254
257
if ( args . runToMain === true ) {
255
258
await mi . sendBreakOnFunction ( this . gdb ) ;
256
259
}
You can’t perform that action at this time.
0 commit comments