News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Opening a console / debugging in wxSmith

Started by flux00, June 03, 2009, 08:11:17 AM

Previous topic - Next topic

flux00

Hi, I've been using wxSmith to develop a pretty large program, and it's come to the point much of my time is spent debugging. Up till now I've used the C::B debugger but the whole watch aspect is slow (perhaps I'm doing it wrong). My program pushes around large amounts of data which is honestly easier to debug in aggregate, i.e. by console.

Is there a may to enable to enable a console in a wxSmith project? I want to just use cout's..

Any remarks on debugging methods in C::B is appreciated as well! I've been using vc++ for years and made the switch for wxSmith.

MortenMacFly

Quote from: flux00 on June 03, 2009, 08:11:17 AM
Is there a may to enable to enable a console in a wxSmith project? I want to just use cout's..
Change the application type from "GUI" to "console" in the project settings.
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]

flux00

Haha, well I honestly searched for an answer before posting..


Thank you  :D

ollydbg

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.