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.

0

Hello!

  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 https://youtrack.jetbrains.com/issue/CPP-9811. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
0

请先登录再写评论。