User forums > Help

Debug a program with arguments (from CLI)

(1/1)

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".

Navigation

[0] Message Index

Go to full version