Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?

How to debug any (non-Qt) executable with QtCreator

  1. Create .gdbinit in the same directory as executable, with the following contents:
set breakpoint pending on
b main
  1. Run this:
qtcreator -client -debug my_executable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.