It appears from the debugger plugin source that it gets the path from the target to be used as the working directory (dbm_gdb.c:721).  The commandline arguments that can be input in the debugger plugin appear to be used as only inputs to the target application so adding the --cd option doesn't do anything for me.
 

From: users-bounces@lists.geany.org [users-bounces@lists.geany.org] On Behalf Of Thomas Martitz [thomas.martitz@student.htw-berlin.de]
Sent: Tuesday, July 09, 2013 7:05 AM
To: Geany general discussion list
Subject: Re: [Geany-Users] set working directory for debug

Am 09.07.2013 13:56, schrieb Drake, Johnathan:
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:
 



You separate gdb arguments from application arguments using the --args argument.

E.g. gdb <gdb_arguments> --args <program_arguments> <program>