RDunkley / meta-dotnet-core

BitBake recipes to use the pre-built binaries provided by Microsoft for .Net Core and their remote debugger.
MIT License
33 stars 26 forks source link

Failed to attach to process when Remote Debugging (vsdbg 2022) #39

Closed TGibsonReach closed 2 years ago

TGibsonReach commented 2 years ago

Updated to vsdbg 2022 using pagdots (@pagdot) forked branch. Currently side loading a basic .Net6 console app to validate the remote debugger and running into an issue where the remote debugger fails to process the attach request because it cannot find the file specified.

This only happens when trying to remote debug from Visual Studio 2022. We can remote debug the .Net6 Application from Visual Studio 2019, however 2019 doesn't support .Net6 Development...

Cross Platform Log image

Visual Studio Pop Up image

We're not entirely sure which file it is looking for? Has anyone else experienced this issue?

TGibsonReach commented 2 years ago

Update* Comparing vs2022 and vs2019 folders found in .vs-debugger/ we found the vs2022 folder was missing the default.vsdbg-config.json file.

We added the below line to vsdbg_17.x.inc to explicitly copy over the file which fixed our problem :

do_install_prepend () {
    install -d ${D}${ROOT_HOME}/.vs-debugger/vs2022/
+   install -m 0755 ${S}/default.vsdbg-config.json ${D}${ROOT_HOME}/.vs-debugger/vs2022/
    install -m 0755 ${S}/vsdbg ${D}${ROOT_HOME}/.vs-debugger/vs2022/
    install -m 0644 ${S}/license.txt ${D}${ROOT_HOME}/.vs-debugger/vs2022/
    install -m 0644 ${S}/ThirdPartyNotices.txt ${D}${ROOT_HOME}/.vs-debugger/vs2022/
mischo5500 commented 1 year ago

Would be nice to merge it into master, got the same problem, when trying launch and debug application under .NET 6.0 and vs2022 vsdbg @RDunkley .

RDunkley commented 1 year ago

This should be in Master now.