Then I create a project with wizard which support debugging with
wxWidgets source.then try "step into" the source, the debugger reported
that "Cannot open file: D:\window.cpp" .
Actually I installed wxWidget in "D:\wxWidgets-2.8.9", the debugger
can't find the true path of the source code.
so, I think something is wrong. I trying to install wxPack, it came the
same problem.
Any suggestion or hints? I have struggle with this problem for several
day.It seems that there is no option in code::blocks.
see a more detailed snapshot in my post here:
_______________________________________________
wx-users mailing list
wx-u...@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wx-users
If you just moved the "already compiled
> source tree" to that location you might want to compile the "wx source
> tree" from the location you are using when compiling you wx dependant
> application.
I haven't move or change the source code. There is a trick: when GDB
complain that she can't find the wxWidgets sourc file in a folder like
"d:/", I can manually copy these files from "D:\wxWidgets-2.8.9\src\msw"
to this folder, then, GDB could happily worked.
>
> I will test also on windows when I will have the time (and windows itself).
Thanks, If you have time, you can test it. You can just use the wizard
to generate a simple wxWidgets project, and linked with "the debug
version of wxWidget library".
>
> Another question: Why would you be interested to step through the
> wxWidgets code?
>
That's because I'm interest in the "Message routing and dispatching of
wxWidgets", it's very important and I just know a little from my
experience from MFC. Both MFC and wxWidgets have some similarities on
this topic.
Thanks for your suggestion. It really low down my stress.
I enable the "Debugger log", and see that GDB try to search a relative
path "..\..\src\msw\window.cpp", So, I follow your advice and add a
debugger search path "\$(#wx)\samples\access" or a absolute path like"
D:\wxWidgets-2.8.9\samples\aui " to get the right path of window.cpp.
But that still doesn't work, If my project folder is "D:\test\test6"
then GDB complaints that "Cannot open file: D:\src\msw\window.cpp"
The only workable method is:
Move my project folder to the "D:\wxWidgets-2.8.9\samples\", Then GDB
will work happily to find the window.cpp.
The problem happened in the latest nightly build SVN build 5322. I'm not
sure how to report this problem to the code::blocks develop teams.
Because when I asked for help on this problem, no one replied to my post
on that forums.
> If this doesn't work a good exercise to get into wxWidgets would be to
> see where the bug comes from :) (since C::B is written in wxWidgests).
>
> Regards,
>
> Iulian