Skip to main content

Debugging

You can debug Document Builder scripts executed via CLI. To do this, follow the instructions below.

  1. Open a terminal in the DocumentBuilder folder.

  2. Set the V8_USE_INSPECTOR environment variable to 1 and run the script:

    SET V8_USE_INSPECTOR=1
    docbuilder.exe script.js
  3. A link will appear in the terminal. Open it in your Chrome/Chromium browser to connect to the JavaScript context.

    Terminal

  4. Set the breakpoints by clicking the line numbers and run your script again.

  5. Now you can debug the executed methods.

    DevTools