Author Topic: debugging CodeBlocks - no debug highlight since last cvs commit 1.8.2005  (Read 7277 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
What I do to debug C::B plugins is:

1) open app.cpp, position the cursor on HideSplashScreen() in CodeBlocksApp::InitFrame() (currently line 180)
2) press F4 (starts debugging and breaks on the above line).

When it breaks, the plugins have loaded so any breakpoints you set in plugins, will be valid.
Debug :)

Yiannis.

@Yiannis
since your last cvs commit from yesterday on 1.8.2005
the above procedure doesn't any longer work here on my WinXP PC

the debugger is working, but there isn't any debugging-highlight of the actual processed code-line
so i don't know where the debug-process is stopped now.

the interesting thing is, when i debug another appication (console) the the debugging code-highlight
is working, but not when debugging CodeBlocks itself ?

am i the only who has this phenomen ? or is it a newly introduced bug ?
any comments ?



Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
I hate to say it, but it works for me...
Would you mind enabling the debugger's debug log and checking the debugger's output when the breakpoint is hit?
Maybe it has something to do with the path you have C::B in...

Yiannis.
Be patient!
This bug will be fixed soon...

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
I hate to say it, but it works for me...
Would you mind enabling the debugger's debug log and checking the debugger's output when the breakpoint is hit?
Maybe it has something to do with the path you have C::B in...

Yiannis.

ok, i've checked the debugger's debug log and found nothing out of the ordinary,

here's the log: (partly cleaned "..."   from uninteresting stuff)
Code
> directory D:/cpp/_PROJE~1/CODEBL~1/_HEAD/src/
> file devel/codeblocks.exe
> set args --debug-log --no-check-associations -ns
> cd devel
> delete
> tbreak app.cpp:181
> set confirm off
> set disassembly-flavor intel
> run
...
frame-begin 0 0x402565
frame-function-name
CodeBlocksApp::InitFrame
frame-args
arg-begin
arg-name-end
arg-value *
arg-end
frame-source-begin
frame-source-file
src/app.cpp
frame-source-file-end
frame-source-line
181
frame-source-end
source D:/cpp/_PROJE~1/CODEBL~1/_HEAD/src/src/app.cpp:181:6659:beg:0x402565
frame-end
stopped
...
> info args
Current language:  auto; currently c++
...
this = (CodeBlocksApp * const) 0x103e370
...
> info locals
frame = (class MainFrame *) 0x106de48
...

debugging was working well, breakpoints reached and single-stepping was working properly,
also watch-variables were displayed properly, but the actual line in the editor window was not
highlighted as i described earlier.

i tried several possible things but without success.
as a last resort i cleaned the whole project and rebuilt everything - now it works again !

an imaginable theory could be:
i updated last week the gcc compiler from 3.4.2 to 3.4.4 and i'm sure that i rebuilt
codeblocks completely after upgrading the compiler, but then i didn't delete all object files
explicitly but i did a "Project rebuild".

today i deleted all former compilation products by hand and started the "Project rebuild" afterwards.
Thank God!  Now it works again properly !

and ... sorry for the false alarm !