Attach the debugger to running applications | Qt Creator Documentation

- Qt Creator Documentation
- Attach the debugger to running applications
- Qt Creator 19.0.1

Add breakpoints ◦ Attach the debugger to starting processes

# Attach the debugger to running applications

To attach the debugger to an application already running on your local or on a remote machine:

1. Go to Debug > Start Debugging > Attach to Running Application.

2. In Filter, enter a string to filter processes by their process ID or name.
3. 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, and Debuggers.

Add breakpoints ◦ Attach the debugger to starting processes