Xonotic Forums

Full Version: Breakpoint editor / Debugger?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi again,

I'm trying to write my own weapon code for xonotic, but I'm having some trouble getting things to work properly. It would be very helpful if I could step through my code line-by-line while the game is running. Is there some kind of debug mode for setting breakpoints, etc?

EDIT: apparently there isn't any such thing for this game.

In case anyone else ever runs into this problem- The best you can do is LOG_INFO("your", "strings", ..., "here"), which will print to the console. There are also vtos and ftos functions which are helpful for debugging.
FYI, I do a lot of LOG_INFO and sometimes "say".