Skip to content

example using debugger

Antoni Ivanov edited this page Sep 24, 2021 · 6 revisions

Setup a debugger using VDK

Visual Studio Code

  1. Install VDK
  2. In VSCode go to debug (Ctrl+Shift+D) and go to options (launch.json)
  3. Add the following configuration
{
    "configurations": [
        {
            "name": "Python: VDK",
            "type": "python",
            "request": "launch",
            "module": "vdk.internal.cli_entry",
            "args": [
                "run",
                "${workspaceFolder}"
            ],
        }
    ]
}
  1. Select interpreter where vdk is installed :

IntelliJ

  1. Install VDK

  2. Setup Project SDK to the python virtual environment setup (where vdk is installed) in Step 1.

.

  1. Create a new project with the root the data job directory. And set the Project SDK created in Step 2.

.

  1. IntelliJ run configuration should look like below screenshot (data job's name is "foo-job"):
  • module name must be vdk.internal.cli_entry
  • parameter run .
  • Working directory should point to the data job directory
  • If necessary set the project SDK configured in step 2 and 3 as Interpreter

.

Clone this wiki locally