From f8879be719b6ad05667fa3747368abec6d9bbdf5 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Mon, 9 Dec 2024 21:21:42 -0500 Subject: [PATCH] Add some debugging info to help see why this isn't working on GHA --- src/integration-tests/attachRemote.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/integration-tests/attachRemote.spec.ts b/src/integration-tests/attachRemote.spec.ts index aaf715b4..99ed9852 100644 --- a/src/integration-tests/attachRemote.spec.ts +++ b/src/integration-tests/attachRemote.spec.ts @@ -44,6 +44,7 @@ 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); @@ -51,6 +52,9 @@ describe('attach remote', function () { 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)); } });