NVIDIA® Nsight™ Development Platform, Visual Studio Edition 4.7 User Guide
Send Feedback
NVIDIA Nsight supports the standard Visual Studio Locals window for examining the value of local variables in CUDA source code, and the Watch window for interactively evaluating expressions.
The information in the Locals window and Watch window are available in the CUDA Debugger only when:
The Locals window shows the list of variables, their assigned values, and type in the current lexical scope.
![]() |
Note: The block and thread indices are exposed in the blockDim and the threadIdx variables. |
![]() |
Note: Variables that have not yet been initialized show triple question marks as their value: ??? |
![]() |
Note: The CUDA Debugger supports a significant percentage of C++ expression syntax, including:
int* p , entering p,3 in the watch window will treat the variable as an array of three elements; all elements will be visible when the variable is expanded. |
Options include: the Expand Pointers as Array option, and the Max Array Elements, which controls the maximum number of array elements shown for an array expression in the Watch window.
NVIDIA GameWorks Documentation Rev. 1.0.150630 ©2015. NVIDIA Corporation. All Rights Reserved.