Run/Debug remote Debug issue.
I'm trying to figure out if I have incorrectly configured something. I'm trying to run remote debugging on 16.2
I have a configuration called myProject. Every time I clicked the debug button it would try to run a local copy of the binary. So I went in to run/edit-configuration and made a GDB-Remote-Debug configuration called myProject-Debug.
If I select the myProject Run/Debug Configuration I can do a clean and build menu options, but when I press the debug button it tries to run the executable locally.
If I select the myProject-Debug Run/Debug Configuration the clean and build menu options are grayed out, but when I press the debug button it does the remote debug correctly.
Is this normal? Can I configure the myProject to do a remote debug when the button is pressed?
Thanks,
Please sign in to leave a comment.
Let me try to explain this better so that I can get an answer.
I followed the instruction here for Remote Debugging, but I ended up with a separate configuration. https://blog.jetbrains.com/clion/2016/07/clion-2016-2-eap-remote-gdb-debug/
On the original configuration (myProject) I can do a build, but when I click the debug icon it tries to debug my executable on the local machine (not the remote machine).
On the new/second configuration (myProject-debug) I can not do a build (it is grayed out), but when I click on the debug icon it does do remote debugging correctly.
Is this normal or is there some way to tell the original configuration to use remote debugging?
Hello Trey.
There is currently no way to use remote debugging on the regular configuration (because some properties of regular configurations don't make sense for remote debugging and visa versa). So it seems that your situation is correct. Does it cause any problems to you?