in src/test-runner/run-tracker.ts [231:251]
public onBuildLogMessage(params: LogMessageParams) {
if (params.message.endsWith('\\')) {
// Combine messages that are continued on the following line.
this.run.appendOutput(params.message.slice(0, -1))
} else {
this.run.appendOutput(params.message)
this.run.appendOutput('\n\r')
}
if (
this.debugInfo?.launchConfig &&
this.debugInfo.readyPattern?.test(params.message)
) {
const match = params.message.match(/ws:\/\/([^:]+):(\d+)\//)
if (match) {
this.attachDebugger({host: match[1], port: parseInt(match[2], 10)})
} else {
this.startConfiguredDebugSession()
}
}
}