News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Debug a program with arguments (from CLI)

Started by juzna.cz, August 09, 2012, 10:40:35 AM

Previous topic - Next topic

juzna.cz

Hi,

I'd like to use CodeBlocks for debugging. With gdb, I can start directly to execute a command with arguments, like this:
gdb --args ls -la

Is the same possible with CodeBlocks? i.e. something like
codeblocks --args ls -la

would start CodeBlocks, spawn ls process with -la arguments and immediately attach to debug it?

Would be a much nicer way to debug with CodeBlocks GUI than in gdb's prompt.

Thanks

Jenna

Add the arguments to your debug-target in "Project -> Set programs's arguments".