- Qt Creator Documentation
- Start debugging from the command line
- Qt Creator 16.0.1

How To

# Start debugging from the command line

You can use the Qt Creator debugger interface from the command line. To attach it to a running process, specify the process ID as a parameter for the `-debug` option. To examine a core file, specify the file name. Qt Creator executes all the necessary steps, such as searching for the binary that belongs to a core file. To connect to a debug server, specify the server location and port number.

For example:

- `C:\qtcreator\bin>qtcreator -debug 2000`
- `C:\qtcreator\bin>qtcreator -debug core=core.2000`
- `C:\qtcreator\bin>qtcreator -debug some.exe,core=core`
- `C:\qtcreator\bin>qtcreator -debug server=some.dot.com:4251`

See also How To: Debug, Debugging, Debuggers, Debugger, and Command-Line Options.

How To