6

In QtCreator, I have not been able to find how to set the arguments to pass to the executable when running in debug mode.

Pietro
  • 12,086
  • 26
  • 100
  • 193

1 Answers1

10

In QtCreator 2.6.2 it should be:

  • Go to Tab called "Projects" just under "Debug",
  • Now you have to choose kit with your Qt version (if your IDE is configured properly),
  • After selecting kit, you should click tab called "Running", and there should be label with your executable path, arguments to pass and working directory.
ariwez
  • 1,309
  • 17
  • 20
  • 1
    The layout has changed in newer versions. In Qt Creator 4.14 this is still in "Projects", but moved to "Build & Run" > Qt Version > "Run" > "Command line arguments" – bstoney Oct 16 '22 at 08:15