Author Topic: Newbie question about logging  (Read 6797 times)

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Newbie question about logging
« on: April 20, 2010, 09:08:18 am »
Hi all,

I'm have a very basic (and kind of stupid) question about using the debug output (logging) of the CC.

I've set NATIVE_PARSER_DEBUG_OUTPUT=1 (#define NATIVE_PARSER_DEBUG_OUTPUT 1) in nativeparser.cpp, but I don't see the log. Actually, I have no idea where to look for it...  :oops: I expected it to be on the "Code::Blocks" tab on the bottom of the screen (in the "Logs & others" panel), but it doesn't show up in there...

Please help !!!

And sorry for the silly question...

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Newbie question about logging
« Reply #1 on: April 20, 2010, 09:40:43 am »
You have to start C::B with the -d or --debug-log parameter.

Offline daniloz

  • Regular
  • ***
  • Posts: 268
Re: Newbie question about logging
« Reply #2 on: April 20, 2010, 10:30:25 am »
Now it works... :-) Thank you !!!!!

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Newbie question about logging
« Reply #3 on: April 21, 2010, 02:38:03 am »
Now it works... :-) Thank you !!!!!
Also, if you would like to test CodeCompletion plugin, this Code Completion Design - CodeBlocks could help.  :D
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.