Cannot remote debug WSL2 C/C++ program with Visual Studio 2022 Cross-Platform settings
![](https://techprofile.blob.core.windows.net/images/d2061ca7d0a44d65824fbd45aadb865a.jpg)
Please follow with images attached below:
System: WSL2 Ubuntu 22.04, user - macxfadz , Visual Studio 2022 - Version 17.7.4
This is the problem it's unable to start debugging stating that - Unable to establish the GDB session, also Remote File Explorer is always empty never displayed WSL2 files as VSCode to as following:
These are status of SSH connection establishment done vis latest PowerShell 7.3.7 terminal and WSL2
Connected
When we use inbuilt WSL2 GCC/CLANG toolset no issues.
Please describe to how to fix this issue when we trying to Remotely debug using visual studio 2022? and explorer remote WSL2 files using visual sutido 2022 Remote File Explorer utility?