User forums > Using Code::Blocks

how to debug into wxwidget source code?

(1/1)

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]

ollydbg:
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\

Navigation

[0] Message Index

Go to full version