Author Topic: How to debug?  (Read 6766 times)

Aboq

  • Guest
How to debug?
« on: January 26, 2007, 09:48:35 am »
My Project is set to generate the debug symbols and all other libraries im using are also debug libraries.

1: When iam starting debug (Start Debug) it seems random like if after a breakpoint is hit the step into / step out toolbar buttons are there or not.
-> So i have to set many breakpoints

2: How to watch variables? If i rightclick on a variable and add it to watch nothing happens, if i try to open watch window the window does not open.
-> In the watch options however i see the variable added (Have i really to configure the variable type, this is a joke right, see also below 3?)

3: If iam using the Memory Explorer ? and enter &var... then i get the memory but not correct size and not correct big/little endian, right?

thanks

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2769
Re: How to debug?
« Reply #1 on: January 26, 2007, 04:36:09 pm »
   //-- Please Provide more information
   Would you state your CodeBlocks and compiler version, and your Operating System.
   Also state  your wxWidgets version if you're using one.

Aboq

  • Guest
Re: How to debug?
« Reply #2 on: January 29, 2007, 10:31:49 am »
Windows Xp
wxWidgets (the provided modified dll unicode) in same path as cb.exe
MingW 5.1.3 / gcc 3.4.5 / gdb (28.11.2005)
I have also wxWidgets 2.8 installed but this is not related to the problem.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2769
Re: How to debug?
« Reply #3 on: January 29, 2007, 03:03:51 pm »
Windows Xp
wxWidgets (the provided modified dll unicode) in same path as cb.exe
MingW 5.1.3 / gcc 3.4.5 / gdb (28.11.2005)
I have also wxWidgets 2.8 installed but this is not related to the problem.

What version of CodeBlocks? Nightly Built? RC2? SVN?
Where did it come from? What Internet page?

Aboq

  • Guest
Re: How to debug?
« Reply #4 on: January 29, 2007, 05:00:09 pm »
nightly svn = 3474 , 10 jan

however in the 28.jan version it also doesnt work. (Just maybe the window is on a different Display, is there a way to reset the window positions ?)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2769
Re: How to debug?
« Reply #5 on: January 29, 2007, 05:23:30 pm »
nightly svn = 3474 , 10 jan

however in the 28.jan version it also doesnt work. (Just maybe the window is on a different Display, is there a way to reset the window positions ?)

I tried to recreate the situation on XP with 3534, but could not.


Could you provide us with a minimal example of how to recreate the problem.

Aboq

  • Guest
Re: How to debug?
« Reply #6 on: January 29, 2007, 05:36:01 pm »
how could i do that ?

is there an ini file or something or what do you need?

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2769
Re: How to debug?
« Reply #7 on: January 29, 2007, 10:17:48 pm »
how could i do that ?

is there an ini file or something or what do you need?

I'm not sure what the problem is on your end. Could you try going through the following tutorial and see if the problem still persists, and exactly at what step it doesnt work:

http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/codeblocks-instructions.pdf