VSCode: Use port 39999 to test for debugger readiness.

This commit is contained in:
Jacob Oursland
2024-05-08 17:57:21 -06:00
committed by Chris Hennes
parent cc39030293
commit dc9f42de1e
2 changed files with 5 additions and 5 deletions

View File

@@ -13,6 +13,6 @@ debugpy.listen(('localhost', 5678))
# https://github.com/microsoft/debugpy/issues/974
# Open another port that the script WaitForDebugpy can probe to see if
# debugpy is running
listener = Listener(('localhost', 6000), backlog=10)
listener = Listener(('localhost', 39999), backlog=10)
debugpy.wait_for_client()

View File

@@ -16,7 +16,7 @@ def main():
# DO NOT CHECK 5678 or debugpy will break
# Check other port manually opened instead
attempt_counter = 0
while (not check_socket('localhost', 6000)) and attempt_counter < MAX_ATTEMPTS:
while (not check_socket('localhost', 39999)) and attempt_counter < MAX_ATTEMPTS:
time.sleep(RETRY_DELAY_S)
attempt_counter += 1