Attaching and Detaching
Debug processes normally contact Wing IDE automatically during startup. However, Wing IDE can also attach to debug processes that are already running but not yet in contact with the IDE if the process will allow it. There are two cases where this is useful:
(1) When an externally launched process (one that uses wingdbstub.py, as described in section Debugging Externally Launched Code) cannot reach the IDE at the configured host and port during initial startup, for example because the IDE is not yet running or was not configured to accept debug connections.
(2) When a process attached to the IDE is disconnected using Detach from Process in the Debug menu or the detach icon in the toolbar.
In either case, the IDE can manage any number of detached processes, allowing you to attach to any one process at a time.