WebStorm 2020.1 Help

Spy-js tool window

The tool window is available only when the Spy-js plugin is enabled. The plugin is activated by default. If the plugin is disabled, enable it on the Plugins page as described in Manage plugins.

The tool window opens when you launch a run configuration of the type Spy-js or Spy-js for Node.js. As soon as the Spy-js tool captures an event, it shows the event itself, its details, and stack-traces. By clicking an event, you can open the trace file, which is a prettified source file with the script that the event launched.

The tool window consists of a common toolbar and two tabs with panes:

Toolbar

ItemTooltip and shortcutDescription
icons.actions.restart.pngRerun
Ctrl+F5
Click this button to stop the current trace session and run it again. When the session is canceled externally by clicking icons.actions.suspend.png, the button toggles to icons.toolwindows.toolWindowRun.png. Note that after the session restarts, you have to refresh the traced page in the browser to start capturing events.
icons.toolwindows.toolWindowRun.pngRerun
F9
This button substitutes for icons.actions.restart.png if the previous trace session was canceled externally by clicking icons.actions.suspend.png. Click icons.toolwindows.toolWindowRun.png to initiate a new session. Note that after the session restarts, you have to refresh the traced page in the browser to start capturing events.
icons.actions.suspend.pngStop
Ctrl+F2
Click this button to terminate the current process externally by means of the standard shutdown script.

Clicking the button once invokes soft kill allowing the application to catch the SIGINT event and perform graceful termination (on Windows, the Ctrl+C event is emulated). After the button is clicked once, it is replaced with the Kill Process button indicating that subsequent click will lead to force termination of the application, for example on Unix SIGKILL is sent.

icons.debugger.restoreLayout.pngRestore LayoutClick this button to have the changes to the current layout abandoned and return to the default state.
icons.general.pin_tab.pngPin Tab Click this button to pin or unpin the current tab. You may need to pin a tab to prevent it from closing automatically when the maximum number of tabs is reached in this window.
the Close buttonClose
Ctrl+Shift+F4
Click this button to close the selected tab of the Run tool window and terminate the current process.
Last modified: 08 May 2020