[Geany-Users] set working directory for debug

Matthew Brush mbrush at xxxxx
Tue Jul 9 03:29:57 UTC 2013


On 13-07-08 08:57 AM, Drake, Johnathan wrote:
> How does one go about setting the working directory for use with the debugger plugin?  Right now, it wants to start the debug at my base directory which is where my source files are.  I want to be able to set a working directory (where my test files are) so that the debugger executes the target in that directory instead.
>

`gdb --help` shows `--cd=DIR` "Change current directory to DIR". You 
could probably stick that argument into the "Command Line Arguments" box.

> Also, is there a way to debug using the build settings?
>

Not sure if I follow, but you could add a build command to run GDB, of 
course it wouldn't integrate with the Debugger plugin at all.

Cheers,
Matthew Brush



More information about the Users mailing list