Addition Program Arguments when running in debug


So, I am currently trying to set up a development environment for a somewhat weird platform. The built executable cannot be executed by itself and instead relies on a external executable it is then passed to. That executable has additional debug arguments when one wishes to debug.
In that sense, I have two questions.

1. Is it possible to add additional program arguments for when the run config is started as a debug run?
2. Is it possible to automaticially attach CLion's gdb client to the server that the external executable starts?

Thank you for all upcoming responses.

1 comment
Comment actions Permalink


  1. The "Program arguments" field of a run/debug configuration is the same for run and debug, so there is no way to specify additional arguments only for debug.
  2. Unfortunately, there is no way to "Attach to process" automatically. Feel free to comment or upvote See if you are not familiar with YouTrack.

Please sign in to leave a comment.