codebuilds icon indicating copy to clipboard operation
codebuilds copied to clipboard

Debugging

Open TonyHuff opened this issue 8 years ago • 4 comments

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.

TonyHuff avatar Dec 30 '17 23:12 TonyHuff

I had similar problems when my gdb was too old.

magic-k avatar Dec 31 '17 11:12 magic-k

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.

TonyHuff avatar Jan 01 '18 18:01 TonyHuff

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.

gigamegawatts avatar Jan 09 '18 02:01 gigamegawatts

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 ?

truekinetix avatar Nov 14 '18 14:11 truekinetix