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.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.