New in NVIDIA Nsight Visual Studio Code Edition 2022.1
Improvements
- Attach to a running CUDA process It is now possible to attach to a CUDA application that is already running. It is also possible to detach from the application before letting it run to completion. When attached, all the usual features of the debugger are available to the user, as if the application had been launched from the debugger. This feature is also supported with applications using Dynamic Parallelism.
-
Additional Launch Settings
-
envFile
Path to a file containing environment variables to set for the debuggee process. Each line is formatted as either:- KEY=VALUE
- unset KEY (used to unset the environment variable)
-
InitCommands
Provide an array of cuda-gdb commands to run before debugging is started. -
stopAtEntry
If true, the debugger should stop at the entry points of the debuggee. -
cwd
current working directory for debuggee.
-
envFile
-
Security Updates
We’ve updated the VSCode npm packages to the latest versions to address known vulnerabilities.
Intended for Use With
-
CUDA Debugger
See cuda-gdb release notes in the NVIDIA CUDA Toolkit 11.6 Update 2. -
IDE Host
Microsoft Visual Studio Code 1.56.0 (and later) -
Toolkit
NVIDIA CUDA Toolkit 11.6 Update 2 (and later) -
Driver
NVIDIA 510.47.03 (and later)
Want to know more?
Get to know Nsight VSCE
-
Visit the Nsight VSCode Edition overview page
The Nsight VSCode Edition overview page is your information hub for general information, availability, videos, and other links to other NVIDIA tools for GPU code development. -
See the Nsight VSCode Edition spotlight video
This Nsight VSCode Edition spotlight shows you how Nsight VSCode Edition fits in with the other NVIDIA IDE debuggers and can be set up in Microsoft’s Visual Studio Code. Then, you’ll see all the key features in action. You’re going to love it! -
See Nsight VSCode Edition demonstrated at GTC’21
GTC’21 Video On Demand: Latest Enhancements to CUDA Debugger IDEs -
View the Microsoft announcement for the VSCode extension by Nsight VSCE
CUDA Support in Visual Studio Code with Julia Reid - Read the blog postings
Support
-
Have a feature request or enhancement suggestion?
Provide feedback. Note that we may not get back to you on these, but will review these entries periodically as we plan our next releases. -
Have Questions?
Visit the Nsight VSCE Forum . Our experts and the Nsight VSCE community will be there for you.
Requirements
- CUDA Toolkit : Install the CUDA Toolkit to get important tools for CUDA application development including the NVCC compiler driver and cuda-gdb , the NVIDIA tool for debugging CUDA.
- Microsoft vscode-cpptools : Install Microsoft’s C/C++ for Visual Studio Code to get Intellisense support for CUDA C++ code. Nsight VS Code Edition will automatically install this extension.
Quick Start
Open or create a new CUDA application.
Create a launch configuration .
Create launch configuration833×604 256 KB
Start debugging!