Attach the debugger to running applications
To attach the debugger to an application already running on your local or on a remote machine:
- Go to Debug > Start Debugging > Attach to Running Application.
- In Filter, enter a string to filter processes by their process ID or name.
- Select a process in the list, and then select Attach to Process to start debugging.
To refresh the list of running processes, select Update List.
To terminate the selected process, select Kill Process.
While this mode does not strictly require a project to be open in Qt Creator, opening it makes setting breakpoints and stepping through the code easier.
You can specify breakpoints before or after attaching the debugger to the application. For more information, see Setting breakpoints.
See also How To: Debug, Debugging, Debuggers, and Debugger.