[Geany-Users] set working directory for debug

Drake, Johnathan johnathan.drake at xxxxx
Tue Jul 9 11:56:01 UTC 2013


Thanks for the reply Matthew.  the command line arguments appear to be arguments for my target application so I wasn't able to change directories via that method.  However, when I press the run button, i get several messages showing in the terminal window where I launched Geany.  Those messages are:

GLib-CRITICAL **: g_string_free: assertion 'string != NULL' failed

GLib-CRITICAL **: g_hash_table_remove_all: assertion 'hash_table != NULL' failed

As for the second part of my question, you were on the right path.  I was looking for a way to integrate with the debugger plugin from the execute comman window.  Currently, I am launching ddd from the execute command window and it works fine.

I come from the Visual Studio world so I am finding ddd to not be quite as nice and easy to use.

-----------------------------------------------------
John David Drake | MTSI
Modeling and Simulation Analyst
phone: 256.417.6744 | fax 256.417.6744
mobile: 615.653.6470 | email: johnathan.drake at mtsi-va.com
________________________________
From: users-bounces at lists.geany.org [users-bounces at lists.geany.org] On Behalf Of Matthew Brush [mbrush at codebrainz.ca]
Sent: Monday, July 08, 2013 10:29 PM
To: users at lists.geany.org
Subject: Re: [Geany-Users] set working directory for debug

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

_______________________________________________
Users mailing list
Users at lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geany.org/pipermail/users/attachments/20130709/9ab8838c/attachment.html>


More information about the Users mailing list