Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
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 the global scope are listed, along with their value. Note that strings are not currently quoted in the display.
Live code evaluation
Div | ||
---|---|---|
| ||
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 will be echoed to the console. |
Triggers tab
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 | ||
---|---|---|
| ||
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 Added |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|