Failed to launch debug adapter

Hi, I have problem with debugging(C++) unreal engine
After a few seconds after attaching to the process, I get such an error:


(before the error appear, debugging doesn’t work)

I managed to aim almost the main problem of it:
The problem doesn’t occur at ue 5.0.3 (this version of ue demands dotnet at version 3.~ and 4.~ [the latter probably only in the case of android support]).
I can not run ue 5.1.1 without dotnet 6.0.13 and dotnet version is this “almost the main problem” because debugging in ue 5.0.3 with dotnet 6.0.13 also doesn’t work (newer version of dotnet doesn’t repair the problem).

If something is misunderstanding please let me know and forgive me, English isn’t my native language.
Please help me, I’m sitting with this problem for 4 days…

1 Like

I am getting this too when trying to attach to a running UE5 project. I am building UE5 from 5.1.1 source and using Visual Studio 2022 pro. I tried some setting in VS Tools->options->debugging->general based on Stack overflow suggestions but no luck yet.

For me, I noticed that the type was being automatically detected as Python for some reason. I explicitly set this to Native Code in the attach settings and it’s finally working.

3 Likes

This right here was the solution to my problem. Thank you.

2 Likes