example using debugger - vmware/versatile-data-kit GitHub Wiki
Setup a debugger using VDK
Visual Studio Code
- Install VDK
- In VSCode go to debug (Ctrl+Shift+D) and go to options (launch.json)
- Add the following configuration
{
"configurations": [
{
"name": "Python: VDK",
"type": "python",
"request": "launch",
"module": "vdk.internal.cli_entry",
"args": [
"run",
"${workspaceFolder}"
],
}
]
}
- Select interpreter where vdk is installed :
IntelliJ
-
Setup Project SDK to the python virtual environment setup (where vdk is installed) in Step 1.
.
- Create a new project with the root the data job directory. And set the Project SDK created in Step 2.
.
- 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
.