PhpStorm 2016.2 Help

Spy-js Tool Window

The tool window is available only when the Spy-js plugin is enabled. The plugin is not bundled with PhpStorm, but it can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins.

The tool window opens when you launch a run configuration of the type Spy-js or Spy-js for NodeJS. 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:


ItemTooltip and shortcutDescription
stop_and_rerun Rerun
Click this button to stop the current trace session and run it again. When the session is canceled externally by clicking stop, the button toggles to run. Note, that after the session restarts, you have to refresh the traced page in the browser to start capturing events.
run Rerun
This button substitutes for stop_and_rerun if the previous trace session was canceled externally by clicking stop. Click run 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.
Click this button to terminate the current process externally by means of the standard shutdown script.

For a Node.js run configuration, clicking the button once invokes soft kill allowing the Node.js 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 icon_run_tool_window_kill.png indicating that subsequent click will lead to force termination of the application, e.g. on Unix SIGKILL is sent.

debug_layout Restore LayoutClick this button to to have the changes to the current layout abandoned and return to the default state.
pin2.png Pin Use to pin or unpin the tab. If a tab is pinned, the results for the next command are shown on a new tab.
close.png Close
Click this button to close the selected tab of the Run tool window and terminate the current process.
help Help
Use this icon or shortcut to open the corresponding help page.

See Also

Last modified: 24 November 2016