Skip to content

Commit f204573

Browse files
HenryRiley0WebFreak001
authored andcommitted
1. fix lint error
2. add logMessage in README.
1 parent 1695116 commit f204573

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,10 @@ differently based on whether the remote system is a POSIX or a Windows system.
213213
You may need to experiment to find the correct escaping necessary for the command to be
214214
sent to the debugger as you intended.
215215

216+
### LogMessage
217+
218+
LogMessage will print a message in the debug console when breakpoint is hit. Expressions within {} are interpolated.
219+
220+
![LogMessage](images/logMessage.gif)
221+
216222
## [Issues](https://github.com/WebFreak001/code-debug)

images/logMessage.gif

196 KB
Loading

src/backend/mi2/mi2.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class LogMessage {
5050
}
5151
}
5252
}
53-
return null
53+
return undefined;
5454
}
5555
}
5656

@@ -639,7 +639,6 @@ export class MI2 extends EventEmitter implements IBackend {
639639
commands += `\"print ${m[1]}\" `;
640640
}
641641
}
642-
commands += "\"continue\"";
643642
return this.sendCommand("break-commands " + bkptNum + " " + commands);
644643
}
645644

@@ -696,7 +695,6 @@ export class MI2 extends EventEmitter implements IBackend {
696695
breakpoint.id = newBrk.id;
697696
this.breakpoints.set(newBrk, bkptNum);
698697
this.logMessage.logMsgBrkList.push(breakpoint);
699-
700698
resolve([true, newBrk]);
701699
} else {
702700
resolve([false, undefined]);

0 commit comments

Comments
 (0)