Author Topic: Debugging In Code::Blocks  (Read 6390 times)

Offline mahmoud.arafa

  • Single posting newcomer
  • *
  • Posts: 2
Debugging In Code::Blocks
« on: May 22, 2014, 05:19:09 am »
Hi.
While debugging, I can't watch the contents of a container (array, vector,..etc).
Any help?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debugging In Code::Blocks
« Reply #1 on: May 22, 2014, 07:31:03 am »
Can you show us the full debugger plugin logs of you debug session, you can enable it by Menu->Settings->Debugger settings->Full(debug) log.
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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debugging In Code::Blocks
« Reply #2 on: May 22, 2014, 09:33:16 am »
Do you have stl pretty printers installed and enabled for your gdb?
« Last Edit: May 22, 2014, 09:38:02 am by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline mahmoud.arafa

  • Single posting newcomer
  • *
  • Posts: 2
Re: Debugging In Code::Blocks
« Reply #3 on: May 23, 2014, 02:51:49 am »
Can you show us the full debugger plugin logs of you debug session, you can enable it by Menu->Settings->Debugger settings->Full(debug) log.

I enabled it but still can't see them.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debugging In Code::Blocks
« Reply #4 on: May 23, 2014, 03:17:55 am »
Can you show us the full debugger plugin logs of you debug session, you can enable it by Menu->Settings->Debugger settings->Full(debug) log.

I enabled it but still can't see them.

Do you see some logs in the debugger or debugger(debug) panel when you are debugging? See below:

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.