Skip to content

Target Debugging

commy2 edited this page May 9, 2017 · 1 revision

Extended Debug Console - Target Debugging

http://i.imgur.com/lh1bLPx.jpg

Target Debugging adds 8 additional "Watch" fields that can report the return value of short expressions as executed on the server, the local machine or any other connected client. The target machine can be selected from a list. The displayed number is identical to the client id used by the remoteExec command and reported by the PlayerConnected eventhandler (but is not necessarily identical with clientOwner). The displayed name is the profile name (profileName) of the client.

Target Debugging replaces the SERVER EXEC button with a TARGET EXEC button. To execute code on the server, select the server in the "Target Watch" list. If any other client is selected, the "Execute" code will be executed on the selected machine only.

Enabling The Target Debugging

The feature can be enabled by setting the Eden-Attribute: http://i.imgur.com/gfJNYlH.jpg

Alternatively it can be enabled by setting the enableTargetDebug entry to 1 in the description.ext of the mission:

// description.ext
enableDebugConsole = 2;
enableTargetDebug = 1;

Target Debugging is only available, when the Debug Console is available. As with the default Debug Console, call has to be white listed as remoteExec command, which it is by default.