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 Sep 22, 2023
1 parent 347f7cb commit 4102160
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]+)'
const regexStr = target.serverPortRegExp
? target.serverPortRegExp
: 'Listening on port ([0-9]+)';
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 4102160

Please sign in to comment.