News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Project wizard and debugger

Started by electrolot, January 03, 2009, 11:55:20 PM

Previous topic - Next topic

electrolot

Is it possible to set debugger options in project wizard like additional commands? I can set compiler and linker options but what about debugger?

mariocup

Hi electrolot,

you can't specify additional gdb command line options, but you can send additional commands to the debugger. Use the menu project ->properties. In the opening dialogue you have to select the tab debugger and then add your gdb commands in the tab "additional commands".


electrolot

Hi Mariocup,

I know that I can send additional commands to the debugger. I use it.
I mean that I create my wizard script and I want add this command in script. For example I use:

project.AddCompilerOption(_T("-fno-common"));
project.AddLinkerOption(_T("-T mychip.ld"));

for add compiler and linker options.
How add debugger options in script? I can't find any scripting commands for it.

MortenMacFly

Quote from: electrolot on January 04, 2009, 10:16:12 AM
How add debugger options in script? I can't find any scripting commands for it.
To my knowledge these functions are not exposed to the scripting engine as of now. It wouldn't be too hard to do though...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]