Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: ollydbg 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
(http://forums.codeblocks.org/index.php?action=dlattach;topic=9744.0;attach=2911;image)
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]
-
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\