NVIDIA / nsight-vscode-edition

A Visual Studio Code extension for building and debugging CUDA applications.
Other
68 stars 11 forks source link

Error while creating variable object for watch: Error: Python not initialized #8

Closed AtomicVar closed 2 years ago

AtomicVar commented 2 years ago

I CAN use cuda-gdb on command line without any trouble. But when I use the Debug button on VS Code, It shows that:

Error while creating variable object for watch: Error: Python not initialized

on the cuda-gdb inside of VS Code.

Screenshot

Here's my launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "CUDA C++: Launch",
      "type": "cuda-gdb",
      "request": "launch",
      "program": "${fileDirname}/main_gpu"
    }
  ]
}
AtomicVar commented 2 years ago

It seems like the bug is fixed in cuda-gdb 11.5+. After installing the latest cuda-gdb using conda:

$ conda install -c nvidia cuda-gdb

The problem is solved.