Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: alexchen on July 17, 2013, 01:55:03 am

Title: Passing command parameters to the debugger
Post by: alexchen on July 17, 2013, 01:55:03 am
Where do I specify the command line parameters to pass to the debugger?

Thanks.

Alex
Title: Re: Passing command parameters to the debugger
Post by: ollydbg on July 17, 2013, 02:22:21 am
See this screen shot below:
(http://i.imgur.com/J7eWvFV.png)
Title: Re: Passing command parameters to the debugger
Post by: alexchen on July 17, 2013, 03:36:21 am
That is not what I get.  I am using CodeBlocks 12.11 on Ubuntu 13.04.  If I set the parameter "-help" in the Debugger settings, I get the following result in the debugger console:

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet -help -args /home/dev/Linux/Debug64/tool

The parameter is passed to the debugger, not to the target.
(See the attached screen shot of the debugger settings.)
Title: Re: Passing command parameters to the debugger
Post by: oBFusCATed on July 17, 2013, 03:48:04 am
Have you tried to use Project -> Set project's arguments?