Sydney Tang
Senior Programmer

Joined: 17 Oct 2001 |
Posted: Tuesday, 25 May 2004 06:46PM
Quote: Posted 05/25/04 08:58:31 (GMT) by Kyran Echtelion
what's the name of that debugger program? I found the commandline compiler.
The Script Debugger is DebugServer.exe in your utils folder.
To use it, just double-click it. You will get a small window that sits around waiting for the game server to connect to it when the game hits a SpawnScriptDebugger() command. It will then pop up a window that lets you step through the script and inspect the values of local variables.
Also, make sure that in the toolset, under Tools | Options | Script Editor, you have checked the box next to the label "Generate Debug Information When Compiling Scripts".
On the machine on which you will be running nwmain.exe or nwserver.exe, open up nwnplayer.ini. Under [Server Options], make sure you have settings that look something like this:
Debugger Port=5122 Debugger IP Address=127.0.0.1
The port in the DebugServer window should match the port in the INI file. If you will be running DebugServer.exe on the same machine as nwmain.exe or nwserver.exe, then leave 127.0.0.1 as the IP address. Otherwise, you will have to specify an appropriate IP address.
|