lextudio / monodevelop.netcoredbg

.NET Core debugger extension for MonoDevelop
MIT License
21 stars 4 forks source link

Debugger operation failed. #2

Open Bukrin opened 5 years ago

Bukrin commented 5 years ago

When I start debugging a project, I get the exception "Debugger operation failed. Failed command 'configurationDone': 0x80070005". Sometimes when I start monodevelop with root rights debugger is working. I was set rwX flags to all directory and files by path /home/user, but the problem is not resolved.

OS: ubuntu 18.04 MonoDevelop Version 7.8.2 (build 2)

.NET Core Runtime: /usr/share/dotnet/dotnet Runtime Version: 2.2.4 SDK: /usr/share/dotnet/sdk/2.2.106/Sdks SDK Version: 2.2.106 MSBuild SDKs: /usr/lib/mono/msbuild/15.0/bin/Sdks

Bukrin commented 5 years ago

Debugger log:

ERROR [manageddebugger.cpp:1274] g_dbgshim.CreateProcessForLaunch(reinterpret_cast(const_cast<WCHAR*>(to_utf16(ss.str()).c_str())), TRUE, NULL, NULL, &m_processId, &resumeHandle) : 0x80070005

lextm commented 5 years ago

Sounds like the Samsung debugger crashed, and it crashed right before my modification,

https://github.com/lextm/netcoredbg/commit/316c96b04cdcb68fb985936da2fd399824b5176e

Not quite sure what might be the cause.

Is this crash intermittent (happens sometimes) or constantly (always)?

Bukrin commented 5 years ago

This happens constantly, but sometimes it starts to work (with a little chance) when I'm switch to root user and then back. And it works until I restart the OS.

g_dbgshim.CreateProcessForLaunch first parameter is: "dotnet" "/home/neonicks/Projects/NetCoreTestLinux/CoreApp/bin/Debug/netcoreapp2.2/CoreApp.dll"

/usr/share/dotnet/dotnet has -rwxr-xr-x attributes, group root and owner root. CoreApp.dll has -rwxrwxrwx

lextm commented 5 years ago

It is kind of strange, but I could not reproduce this on Ubuntu 18.04. I have no idea how to debug further either.