Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt

The JS debugger allows you to inspect scripts and labels...

 

How do I access it?

Enter cheat mode and then use cheat code "jsdebug".

Script tabs

Image AddedEach scripting environment has it's own tab:.

Image Removed

The name shown on the tab is the value of scriptName followed by ":" followed by the value of me (the player the script is associated with).

All enumerable variables on and constants in the global scope are listed, along with their value. Note that strings are not currently quoted in the display.

Properties of the global object are not listed. Thus, if you're looking for a variable you created and it's not listed, chances are you forgot to define it as a variable or constant.

Live code evaluation

Div
classkeyboards

You can type JS code in to the panel below the globals list and click the Run button to evaluate that code against the global scope in the context of the global object for the associated script environment.

Any errors generated The result of the evaluation will be echoed to the console, eg. if you entered 2+2 then the console would echo 4.

Triggers tab

(question)

Image AddedThe triggers tab lists all active timers (created with setTimer() and queue() functions) across all scripting environments.

The following information is shown:

  • Function – the name of the function that will be invoked
  • Script – the script and player where the function is located
  • Object – the object associated with the trigger as defined in setTimer() or queue() parameters
  • Time – the gameTime when the function was last invoked
  • Interval – the interval or delay as defined in setTimer() or queue() parameters
  • Type – whether the interval repeats (setTimer()) or not (queue())
  • Calls – the number of invocations of the function so far

Labels tab

Image AddedThe labels tab lists all known Labels on your local machine (it won't list labels on network peers in a multiplayer game) along with the .type of the object they are associated with:.

Image Removed

Div
classkeyboards

When a label is selected, you can click the Show button to highlight the area or position on the map associated with the label (which internally uses hackMarkTiles()) as shown below:

Image Removed

.

Image Added

Div
classbox
Availability
Status
colourYellow
title3.2+

Requires:

  • Warzone 3.2 or above
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5