Author Topic: Passing command parameters to the debugger  (Read 5423 times)

Offline alexchen

  • Multiple posting newcomer
  • *
  • Posts: 84
Passing command parameters to the debugger
« on: July 17, 2013, 01:55:03 am »
Where do I specify the command line parameters to pass to the debugger?

Thanks.

Alex

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Passing command parameters to the debugger
« Reply #1 on: July 17, 2013, 02:22:21 am »
See this screen shot below:
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline alexchen

  • Multiple posting newcomer
  • *
  • Posts: 84
Re: Passing command parameters to the debugger
« Reply #2 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.)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Passing command parameters to the debugger
« Reply #3 on: July 17, 2013, 03:48:04 am »
Have you tried to use Project -> Set project's arguments?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]