Topic: [RESOLVED]Debuging and development
Tell me please how i can debug project parts, what IDE or tool i must use ?
You are not logged in. Please login or register.
Teeworlds Forum → Development → [RESOLVED]Debuging and development
Tell me please how i can debug project parts, what IDE or tool i must use ?
Is this spam? He never said "teeworlds"...
Not it is not a spam.
Parts of teeworlds project if you want.
But how about not flood answer ?
When you compile teeworlds instead of:
..\bam\bam release
or
..\bam\bam server_release
enter this:
..\bam\bam debug
or
..\bam\bam server_debug
Based on whether you want to debug everything or just server...
Hope it helps
I advise you to check the documentation about this. If you're using Windows, you should get Visual C++ for that.
first compile the debug version of the server or client or what ever you want to debug like Elite Tee already described.
Then use gdb in linux or simply Visual C++ in windows to debug teeworlds.
For gdb u can follow the steps described here: https://wiki.ubuntu.com/Backtrace
If u use windows just open Visual C++ and click on Open-->Project... then choose the *_d.exe file u just compiled (* stands for "teeworlds" or "teeworlds_srv"... what ever) and open it. Then right click and properties... there u can set the arguments for the start like "-f config.cfg" or what ever... then simply run the server via Visual C++... there should be a "play" button.
You also can pause the program or set points in the code where the program is supposed to wait to inspect the values of the vars and stuff or run it stepwise...
I dunno how this work with gdb though xD
IIRC In Visual Studio (Visual C++) you can go to Options(or Tools)>Attach process
Thanks all for detailed answers.
Teeworlds Forum → Development → [RESOLVED]Debuging and development
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.