VSCode: Use port 39999 to test for debugger readiness.
This commit is contained in:
committed by
Chris Hennes
parent
cc39030293
commit
dc9f42de1e
@@ -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()
|
||||
|
||||
2
contrib/.vscode/scripts/WaitForDebugpy.py
vendored
2
contrib/.vscode/scripts/WaitForDebugpy.py
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user