diff --git a/contrib/.vscode/scripts/VSCodeAutostartDebug.FCMacro b/contrib/.vscode/scripts/VSCodeAutostartDebug.FCMacro index 9734d7a5b2..8901de6b62 100644 --- a/contrib/.vscode/scripts/VSCodeAutostartDebug.FCMacro +++ b/contrib/.vscode/scripts/VSCodeAutostartDebug.FCMacro @@ -11,8 +11,8 @@ debugpy.listen(('localhost', 5678)) # Turns out you cannot probe debugpy to see if it is up: # https://github.com/microsoft/debugpy/issues/974 -# Open another port that the script WaitForDebugpy can probe to see if +# 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() diff --git a/contrib/.vscode/scripts/WaitForDebugpy.py b/contrib/.vscode/scripts/WaitForDebugpy.py index 8874490040..4f8f70c899 100644 --- a/contrib/.vscode/scripts/WaitForDebugpy.py +++ b/contrib/.vscode/scripts/WaitForDebugpy.py @@ -1,7 +1,7 @@ import socket from contextlib import closing import time - + TIMEOUT_TIME_S = 30 RETRY_DELAY_S = 0.1 @@ -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 @@ -26,4 +26,4 @@ def main(): exit(0) if __name__ == "__main__": - main() \ No newline at end of file + main()