# Cannot debug application using WSL2 and cuda-gdb

**URL:** <https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566>\
**Category:** CUDA-GDB\
**Tags:** cuda\
**Created:** [December 14, 2025, 9:17am UTC](https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566 "2025-12-14T09:17:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![utkarsh.verma](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@utkarsh.verma](https://forums.developer.nvidia.com/u/utkarsh.verma)\
**Post date:** [December 14, 2025, 9:17am UTC](https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566/1 "2025-12-14T09:17:29Z")

</div>

I have a Windows machine where I wanted to use `cuda-gdb` within WSL2 using VS Code. When I launch my application, I am greeted with this:

```auto
WARNING: Debug interface is not enabled. Please see https://docs.nvidia.com/cuda/cuda-gdb/index.html#supported-platforms for more details.

```

I checked the linked webpage, and can confirm that the registry key exists with the required value.

```auto
$ Get-ItemProperty -Path "HKLM:\SOFTWARE\NVIDIA Corporation\GPUDebugger" -Name "EnableInterface" -ErrorAction SilentlyContinue | Select-Object EnableInterface

EnableInterface
---------------
              1

```

In fact, this was set by default and I didn’t have to modify anything. Additionally, here is what I get for running `nvidia-smi` within WSL:

```auto
Sun Dec 14 10:14:25 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.102 Driver Version: 581.60 CUDA Version: 13.0 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA RTX A1000 6GB Lap... On | 00000000:01:00.0 On | N/A |
| N/A 36C P8 6W / 72W | 1902MiB / 6144MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 101781 C /Utkarsh N/A |
+-----------------------------------------------------------------------------------------+

```

and this is the Linux kernel I am using:

```auto
6.6.87.2-microsoft-standard-WSL2

```

I could not find any fixes in the documentation online and other sources. The closest I could find was this post, but it still seems unresolved.

[Cuda-gdb can’t step into kernel code in WSL2 - CUDA Developer Tools / CUDA-GDB - NVIDIA Developer Forums](https://forums.developer.nvidia.com/t/cuda-gdb-cant-step-into-kernel-code-in-wsl2/347034)

Please let me know if anything else is required to be able to use `cuda-gdb` with the setup I have.

Thanks and regards,

Utkarsh

---

<div class="post-metadata">

**Author:** ![veraj](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/veraj/32/256893_2.png) [@veraj](https://forums.developer.nvidia.com/u/veraj)\
**Post date:** [December 15, 2025, 3:17am UTC](https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566/2 "2025-12-15T03:17:14Z")

</div>

Hi, @utkarsh.verma

Sorry for the issue you met.

1. Are you using Win10 or Win11 ?
2. Can you please update wsl by “$wsl --update”?
3. Can you please get latest R590 driver ? We have some fixes there.

---

<div class="post-metadata">

**Author:** ![utkarsh.verma](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@utkarsh.verma](https://forums.developer.nvidia.com/u/utkarsh.verma)\
**Post date:** [December 15, 2025, 9:18pm UTC](https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566/3 "2025-12-15T21:18:00Z")

</div>

Hi @veraj,

Thanks for getting back. Here are my answers to your questions:

1. Windows 11 (update to date)
2. I have updated WSL version 2.6.2.0
3. Installed the new 591.44 NVIDIA driver.

After doing 2 and 3 (don’t know which one), it started working. Thanks!

---

<div class="post-metadata">

**Author:** ![veraj](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/veraj/32/256893_2.png) [@veraj](https://forums.developer.nvidia.com/u/veraj)\
**Post date:** [December 16, 2025, 2:11am UTC](https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566/4 "2025-12-16T02:11:54Z")

</div>

Great to know it works !

---

<div class="post-metadata">

**Author:** ![utkarsh.verma](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@utkarsh.verma](https://forums.developer.nvidia.com/u/utkarsh.verma)\
**Post date:** [December 17, 2025, 7:54pm UTC](https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566/5 "2025-12-17T19:54:03Z")

</div>

Hi @veraj,

Thanks for getting back. Here are my answers to your questions:

1. Windows 11 (update to date)
2. I have updated WSL version 2.6.2.0
3.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [December 31, 2025, 7:54pm UTC](https://forums.developer.nvidia.com/t/cannot-debug-application-using-wsl2-and-cuda-gdb/354566/6 "2025-12-31T19:54:51Z")

</div>

Closed on December 31, 2025, 7:54pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
