Script Debugging

IntelliJ

  1. Access Debug Options

    • Navigate to the script project’s remote debug options

    • Copy the remote debug options

Remote Debug Options
  1. Set Up Shell Environment

    • Open a shell terminal and navigate to the core directory of the DaVinci Configurator installation

    • Set the DVCFG_JVM_ARGS environment variable in the shell with your copied remote debug options. Note: Modify the suspend flag to suspend=y to enable the wait-for-debugger mode.

    • Verify the correct shell configuration: echo $env:DVCFG_JVM_ARGS

Shell Debug Variable
  1. Start Debugging the Script Task

    • Use the opened shell terminal to start the script task as usual.

    • Set the desired breakpoints in the script code

    • After the script task is started, the DaVinci Configurator will wait for a debugger to connect.

Run Script Task
  • Now attach your script to the DaVinci Configurators script task execution process, by activating the remote debugging in the script project.

Attach for Debugger