Attach to running GPU programs
You can attach to a running GPU program, and then debug the GPU threads.
For details how to attach to a running job, see Attach to running programs, and select the appropriate GPU runtime on the Attach window.

For more information about AMD GPU and Attaching to GPU Processes, see Attach to running AMD GPU programs.
For more information about Intel Xe GPU and Attaching to GPU Processes, see Attach to running Intel Xe GPU programs.