lextudio / monodevelop.netcoredbg

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

Trouble getting started #1

Open germgerm opened 5 years ago

germgerm commented 5 years ago

Am interested in using/helping with this project. After following the install directions, everything seems to be in place but when attempting to debug a simple console app, the console window is never displayed ( works if started without debugging ) and the program just exits. It looks like VSCodeDebuggerSession.OnDebugAdaptorRequestReceived is never being called to start up the console. Monodevelop had a similar issue when using xfce-terminal. I am wondering that this is the same issue surfacing here. Can you tell what your test invironment is ? Are you getting a console up and running under debug ?

lextm commented 5 years ago

If you want to see an external console, that's not supported right now. The Samsung debugger only accepts some settings,

https://github.com/Samsung/netcoredbg/blob/9d0608ff8f39ab6e0fbff448bdd8c485b56b2761/src/debug/netcoredbg/vscodeprotocol.cpp#L316

Visual Studio for Mac/MonoDevelop uses integrated terminal (an "Application Output" panel) to show you the console output instead.

germgerm commented 5 years ago

Thanks - are you getting any breakpoints to work ?

lextm commented 5 years ago

What debugger are you using? The binaries from Samsung repo won't work, as they don't support the actual VSCode debugging protocol the way they should. You need to compile from my fork, as readme says.

germgerm commented 5 years ago

I am using the debugger compiled from your repo as instructed.

lextm commented 5 years ago

I won't be able to help, as I could not reproduce this on both Mac and Ubuntu. You might debug the code base further to see if you locate some hints.

BTW, "It looks like VSCodeDebuggerSession.OnDebugAdaptorRequestReceived is never being called to start up the console" is expected.

If you want to set some break points, you might consider,