Author Topic: Opening a console / debugging in wxSmith  (Read 3698 times)

flux00

  • Guest
Opening a console / debugging in wxSmith
« on: June 03, 2009, 08:11:17 am »
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Opening a console / debugging in wxSmith
« Reply #1 on: June 03, 2009, 08:45:11 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

flux00

  • Guest
Re: Opening a console / debugging in wxSmith
« Reply #2 on: June 03, 2009, 03:08:31 pm »
Haha, well I honestly searched for an answer before posting..


Thank you  :D

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Opening a console / debugging in wxSmith
« Reply #3 on: June 03, 2009, 04:29:33 pm »
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.