Author Topic: how to debug into wxwidget source code?  (Read 5564 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5906
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
how to debug into wxwidget source code?
« on: December 10, 2008, 05:24:21 pm »
When I'm debugging a wxwidget project. (I'm using windows, and installed c::b and wxpack), the project is linked with "libwxmsw28ud.a" and it works fine. But When I set a breakpoint on a message handler, then click the "call stack" window to locate a function named "wxWndProc...", it reported that "Cannot open file: D:\src\msw\window.cpp" .

see the snapshot as an attachment below


surely the debugger can't find these files , because wxpack was installed in "D:\SourceCode\Libraries\wxWidgets2.8..".

So, my question is "how to set c::b to let it know the path of wxWidget source file like window.cpp"? Thanks.



[attachment deleted by admin]
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 ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5906
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: how to debug into wxwidget source code?
« Reply #1 on: December 13, 2008, 02:41:10 pm »
can someone help me?
Thanks.
I still can't get the solution even I recompile the whole wxWidget library. The debugger still can't locate the source file in the right path.

it seems that I should manually add the path to GDB.
But How can I do this?

like

Adding source dir: D:\XXXX\wxWidgets-2.8.9\build\msw\
Adding source dir: D:\XXXX\wxWidgets-2.8.9\
« Last Edit: December 14, 2008, 01:54:38 pm by ollydbg »
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.