Skip to content

Debugger

ItsDeltin edited this page Aug 22, 2020 · 1 revision

Overwatch Script To Workshop can show variables and class structures using the debugging feature.

The advantages of using this over the workshop's inspector is:

  • Multidimensional arrays will correctly be displayed.
  • Class structures can be displayed.

OSTW inspector

To start debugging, open an OSTW script then open the run tab. Click the create a launch.json file button.

Debugging tab Launch.json

This will create a launch configuration for debugging OSTW scripts. Press F5 at any time to start debugging.

In Overwatch, open the inspector and click the copy to clipboard current variables for current variable target as workshop actions button.

Copy variables

This will show the variables in vscode's Variables section in the run tab.