Skip to content

Commit

Permalink
Add some debugging info to help see why this isn't working on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahgraham committed Dec 10, 2024
1 parent 8c1d362 commit f8879be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/integration-tests/attachRemote.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,17 @@ describe('attach remote', function () {
if (gdbserver.stderr) {
gdbserver.stderr.on('data', (data) => {
const line = String(data);
console.log("line -->", line, "<--")
accumulatedStderr += line;
const LISTENING_ON_PORT = 'Listening on port ';
const index = accumulatedStderr.indexOf(LISTENING_ON_PORT);
if (index >= 0) {
const portStr = accumulatedStderr
.substr(index + LISTENING_ON_PORT.length, 6)
.trim();
console.log("parsing port with this info")
console.log(accumulatedStderr)
console.log(portStr)
resolve(parseInt(portStr, 10));
}
});
Expand Down

0 comments on commit f8879be

Please sign in to comment.