For example, in the optixSphere project, I set a breakpoint at some code line in the inner of function inhole_camera(). But when I start “Nsight”->“Start CUDA Debuging”->“connect unsecurely”, the program is executed without interrupt.
How could I watch the value of the variable in the function inhole_camera()?
Any suggestion will be appreciated.
THX!
Unfortunately source code level debugging of the CUDA sources in OptiX is not supported.
First, OptiX doesn’t handle PTX code generated with debug info (nvcc -g or -G options).
Then it translates and rewrites the input PTX code to a mega-kernel which doesn’t retain any possible debug information.
There is no connection to the original CUDA sources left to work with in Nsight after that.