how can i debug cafu ?
thanks for the 611 source release.
is there any way to debug the cafu engine ?
i want to see how the code works, i was used to debug with visual studio...
it will be grateful for any suggestion!
is there any way to debug the cafu engine ?
i want to see how the code works, i was used to debug with visual studio...
it will be grateful for any suggestion!
Re: how can i debug cafu ?
Hi zengqh,
I never use Visual Studio other than from the command line or via SCons, but I'd be interested in how this works as well.
About debugging, you should also be able to do this with the executables generated directly by SCons as well: Just open the
Can you please tell how you did this?zengqh wrote:i have just found that the scons can be converted to visual studio project.
I never use Visual Studio other than from the command line or via SCons, but I'd be interested in how this works as well.
About debugging, you should also be able to do this with the executables generated directly by SCons as well: Just open the
.exe
binary in your favorite debugger. (I use WinDbg under Windows, which also works very well as a just-in-time debugger.)Best regards,
Carsten
Carsten
Re: how can i debug cafu ?
http://www.scons.org/wiki/IDEIntegratio ... 22cd161bf4
after i try the below, i found that
it just can compile it in visual studio, but it can't debug...
thanks, i will try windbg.
after i try the below, i found that
it just can compile it in visual studio, but it can't debug...
thanks, i will try windbg.
Re: how can i debug cafu ?
Thanks!zengqh wrote:http://www.scons.org/wiki/IDEIntegration
As I said above, I have no first hand experience with Visual Studio, but I'm still surprised. I would expect that you can open any executable with the VS debugger that comes with the proper debug symbols (the Cafu debug builds do).i found that
it just can compile it in visual studio, but it can't debug...
That is, I was thinking that the VS debugger is, in this regard, similar to WinDbg and any other debugger, and that you can use it also when the project was not strictly build with the VS IDE... but alas, I'm speculating here.
Best regards,
Carsten
Carsten
Re: how can i debug cafu ?
I just tried WinDbg, it always sayCarsten wrote:Hi zengqh,
Can you please tell how you did this?zengqh wrote:i have just found that the scons can be converted to visual studio project.
I never use Visual Studio other than from the command line or via SCons, but I'd be interested in how this works as well.
About debugging, you should also be able to do this with the executables generated directly by SCons as well: Just open the.exe
binary in your favorite debugger. (I use WinDbg under Windows, which also works very well as a just-in-time debugger.)
any help?ERROR: Symbol file could not be found.
Re: how can i debug cafu ?
Hi deamonpog,
That said, I don't think that this error is fatal, as the missing symbol file is probably referring to Windows libraries that (as application developers) we normally don't need to debug into anyway.
You should, despite the error, be able to see debug information such as function and variable names when you use WinDbg for debugging Cafu (in debug build), using it either as just-in-time debugger, or when you open or attach to the
I don't feel particularly qualified to give advice about WinDbg, because there is much of it that I don't understand well enough myself. (So if in doubt, you may want to refer to WinDbg-specific resources, or user groups etc.)deamonpog wrote: I just tried WinDbg, it always sayany help?ERROR: Symbol file could not be found.
That said, I don't think that this error is fatal, as the missing symbol file is probably referring to Windows libraries that (as application developers) we normally don't need to debug into anyway.
You should, despite the error, be able to see debug information such as function and variable names when you use WinDbg for debugging Cafu (in debug build), using it either as just-in-time debugger, or when you open or attach to the
Cafu.exe
executable via the menu. Best regards,
Carsten
Carsten
Re: how can i debug cafu ?
Ah maybe that is the case. Thanks. Anyway i found that its easier to use VS 2010 than WinDbg for me since i am used to it.
I used that "Makefile Project" template when creating the project as suggested in http://www.scons.org/wiki/IDEIntegratio ... Windows.29 and gave the Cafu.exe as the output file in project settings so that Debug->Start Debugging (Shortcut : F5) will start debugging.
I used that "Makefile Project" template when creating the project as suggested in http://www.scons.org/wiki/IDEIntegratio ... Windows.29 and gave the Cafu.exe as the output file in project settings so that Debug->Start Debugging (Shortcut : F5) will start debugging.
Re: how can i debug cafu ?
It's good to hear that this works, thanks for sharing it!deamonpog wrote:I used that "Makefile Project" template when creating the project as suggested in http://www.scons.org/wiki/IDEIntegratio ... Windows.29 and gave the Cafu.exe as the output file in project settings so that Debug->Start Debugging (Shortcut : F5) will start debugging.
Best regards,
Carsten
Carsten
Who is online
Users browsing this forum: No registered users and 30 guests