Author Topic: Debugger cannot open files  (Read 16549 times)

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Debugger cannot open files
« Reply #15 on: November 20, 2009, 08:07:40 pm »
I just tested it on vista with a wizard-created standard-project, no special settings, and debugging into wxWidgets works fine.

Self build (of course) C::B from trunk (r5923).

wxWidgets 2.8.10 build the same way as yours.
All build with TDM's gcc 4.4.1-2, debugger is gdb 7.02.

The project is in "c:\new\tmp\testtt", wxWidgets is below "c:\wxwidgets-2.8.10", that's also the base path of the global variable "wx", all other fields of the settings for "wx" are left empty.

Offline carrejans

  • Single posting newcomer
  • *
  • Posts: 9
Re: Debugger cannot open files
« Reply #16 on: November 30, 2009, 03:23:47 pm »
Still haven't found a solution to my problem.
I make use of wxwidgets 2.9.0 and last nightly build of codeblocks.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5247
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Debugger cannot open files
« Reply #17 on: November 30, 2009, 03:50:03 pm »
Still haven't found a solution to my problem.
I make use of wxwidgets 2.9.0 and last nightly build of codeblocks.

Both jens and me have no problem debug into the wx source code. So I still suggest you can use wxWidgets 2.8.10.(because I havn't tried 2.9.0).

The last suspect is : did you have some space between the folder names? such as your wxWidgets library path is :

C:\XXXXX  XXXXX\

This may cause some problems in my opinion GDB can't debug into a source file with space in full path names. :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.

Offline carrejans

  • Single posting newcomer
  • *
  • Posts: 9
Re: Debugger cannot open files
« Reply #18 on: November 30, 2009, 05:01:28 pm »
Still haven't found a solution to my problem.
I make use of wxwidgets 2.9.0 and last nightly build of codeblocks.

Both jens and me have no problem debug into the wx source code. So I still suggest you can use wxWidgets 2.8.10.(because I havn't tried 2.9.0).

The last suspect is : did you have some space between the folder names? such as your wxWidgets library path is :

C:\XXXXX  XXXXX\

This may cause some problems in my opinion GDB can't debug into a source file with space in full path names. :D

No, no spaces in path.

I use some things from 2.9, that don't exist in 2.8.10.  :?

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Debugger cannot open files
« Reply #19 on: November 30, 2009, 09:54:42 pm »
After reading this thread again, I can confirm this problems.
I can debug into wWidgets, that means set a breakpoint in my code and then step into wxWidgets code.

Jumping into wxWidgets sources from the callstack does indeed not work.
The problem is, that wxWidgets is not compiled with full, but with relative paths, so C:::B does not know where to look for ../src/xxx.cpp.