Skip to content

Commit

Permalink
Add debugging to see what is arriving at parsing message
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham committed Oct 10, 2023
1 parent 1d653e4 commit 9ead66f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/GDBTargetDebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,15 @@ export class GDBTargetDebugSession extends GDBDebugSession {
);
} else {
checkTargetPort = (data: any) => {
const regex = new RegExp(
target.serverPortRegExp
? target.serverPortRegExp
: 'Listening on port ([0-9]+)\r?\n'
const regexStr = target.serverPortRegExp
? target.serverPortRegExp
: 'Listening on port ([0-9]+)\r?\n';
const regex = new RegExp(regexStr);
this.sendEvent(
new OutputEvent(
`checking '${data}' for /${regexStr}/`,
'server'
)
);
const m = regex.exec(data);
if (m !== null) {
Expand Down

0 comments on commit 9ead66f

Please sign in to comment.