WebStorm 2026.2 Help

JSEval

With the JSEval plugin you can inspect the evaluation results of your code exactly at the position they appear in a JavaScript or a TypeScript file. The tool allows for inspecting values from console.log expressions as well as from expressions with appended //= comments before an expression is reached.

Additionally, you can further change the context of the execution by selecting a runtime, specifying environment variables and application parameters, configuring TypeScript handling, and more.

Before you start

Make sure you are using WebStorm version 2026.1.1 or later.

Install the JSEval plugin

Install the JsEval plugin
  1. Press Ctrl+Alt+S to open settings and then select Plugins.

  2. Open the Marketplace tab, locate the JSEval plugin in the list and click Install.

Live evaluations and code coverage

With JSEval, you can inspect your code on the fly, receiving live updates to evaluations and code coverage as your program is executing. The value of an expression is visible in the editor directly when it becomes available or is executed.

Mark expressions to evaluate

  • Append a //= comment at the end of an expression that you want to be evaluated.

  • Alternatively, log the value to the console by using one of the following error methods:

    • console.log()

    • console.error()

    • console.trace()

    • console.info()

    • console.debug()

    • console.warn()

Start evaluation

  1. Open the file to evaluate in the editor.

  2. From the main menu, select View | Tool Windows | JSEval to open the JSEval tool window.

  3. In the JSEval tool window, do one of the following:

    • Click the Track an
                            Opened File icon on the toolbar and select the file to evaluate from the list.

    • To evaluate the file in the currently active editor tab, click the Track Current File icon.

    A new tab with the name of the inspected file is added to the JSEval tool window where the values of the expressions marked for evaluation are shows. The values are also displayed right in the editro, next to the corresponding expressions.

Error tracing

When execution of a file fails, JSEval displays an error trace, so you can clearly see where the error comes from.

JSEval tool window

Every expression that is evaluated and presented can be further inspected in the dedicated JSEval tool window. Here you can also inspect the deeply nested elements of objects and arrays and copy the values from the tree. Double-clicking an item leads to the point where it is evaluated from.

Tracking time passed

Use the //' comment to track how long it took to reach a specific expression from the execution start.

Support for imports

You can also track files with imports from packages or other project files. Values are updated on changes in the imported files.

Configuring the context of executions

Choose a runtime for executions

When executing your code, you can switch between various Node.js runtime versions to explore differences between them.

Configure TypeScript handling

For TypeScript files, you can also configure TypeScript transpilation handling for Node.js.

From the drop-down list on the toolbar of the JSEval tool window, select one of the following options:

Configure TypeScript handling
  • Default TS Handling - with this option selected, no TypeScript handling is added. You can still configure custom handling through advanced file settings as described above.

  • Transform Types - select this option to have --experimental-transform -types appended to the Node.js parameters. Transformation is applied to TypeScript-only types, such as, enum and namespace.

Configure additional execution properties

You can additionally specify the parameters to be passed to the runtime or to the application, the working directory to run the application in, as well as the environment variables.

Specify advanced evaluation control settings

  1. In the JSEval tool window, click the Advanced Configuration icon.

    Advanced Configuration icon
  2. In the Advanced File Evaluation Control dialog that opens specify the additional configuration settings

    Advanced File Evaluation Control dialog

Configure the appearance of evaluation reports

To change the default style of evaluation reports and time evaluation reports, press Ctrl+Alt+S to open settings, go to Editor | Color Scheme | JSEval, and configure the styles and colors according to your preferences. Check the new appearance in the Preview area.

07 July 2026