Debugging
I have installed VS Code on my Raspberry PI and it compiles and runs my programs with the C++ extension. I am having an issue launching the debugger. It complains 'debug adapter process has terminated unexpectedly'. I seen nothing in the OUTPUT window.
I had similar problems when my gdb was too old.
I have GNU gdb (Raspbian 7.12-6) 7.12.0.20161007-git
Looking at the log there are complaints of the version of ... Corlib not in sync with this runtime: expected corlib version 1050400003, found 138. Loaded from: /home/pi/.vscode-oss/extensions/ms-vscode.cpptools-0.14.0/debugAdapters/framework/mscorlib.dll Download a newer corlib or a newer runtime at http://www.mono-project.com/download.Corlib not in sync with this runtime: expected corlib version 1050400003, found 138. Loaded from: /home/pi/.vscode-oss/extensions/ms-vscode.cpptools-0.14.0/debugAdapters/framework/mscorlib.dll Download a newer corlib or a newer runtime at http://www.mono-project.com/download. When I go to the url there is a not found message.
For what it's worth, I have the same problem. I didn't find the solution, though.
You would think that replacing the mscorlib.dll file in the specified folder would fix it. I installed the latest version of mono-devel for Raspian (5.4.1.6) from the mono-project web site. It includes various versions of mscorlib.dll in subdirectories of /usr/lib/mono. I tried the most likely candidate (/usr/lib/mono/4.5/mscorlib.dll) - that error message goes away, but the "Debug adapter process" error still occurs, this time with no error message written to the Output window.
Not knowing Mono at all, I'm out of my depth.
I also get the 'debug adapter process has terminated unexpectedly' message when trying to debug C++ with code-oss Version 1.29.0 and the C++ extension on a Raspberry PI 3+.
Any update on a fix ?