News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

how to debug into wxwidget source code?

Started by ollydbg, December 10, 2008, 05:24:21 PM

Previous topic - Next topic

ollydbg

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.

ollydbg

#1
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\
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.