Debug: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
BlasterDRP (talk | contribs)
mNo edit summary
 
mNo edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
debug <parameter>
'''debug''' <number>


This writes the values of <parameter> to a log file specified in the command line. Run it as "eduke32.exe > <filename>.log" to allow the values of any <parameter> using debug to be written to <filename>.log.
Prints <number> to the game log file and triggers a breakpoint if the binary has been compiled with `RELEASE=0`.
 
Only useful for debugging if the process is attached to a debugger like gdb. If not attached to a debugger, the game will simply close upon encountering the instruction.
 
[[Category:Duke3D 1.3/1.5 commands]]

Latest revision as of 09:40, 6 September 2023

debug <number>

Prints <number> to the game log file and triggers a breakpoint if the binary has been compiled with `RELEASE=0`.

Only useful for debugging if the process is attached to a debugger like gdb. If not attached to a debugger, the game will simply close upon encountering the instruction.