My VS Code debugger for Unity runs, connects to the editor and breaks but then fails to evaluate anything most of the time.
Hovering over variables or expressions often produces little popups like:
At other times hovering over object type variables allows to inspect them but always shows the object to be of size 0 and all member variables to have null value or other type default.
Trying to inspect objects in the local variables window produces all sorts of exceptions like:
Setup:
Ubuntu: 20.04.2, 64-bit - latest LTS
Unity: 2020.3.3f1 - latest LTS (also tried: 2020.3.0f1)
Unity Package - Toolchain Linux x64: 0.1.18 - latest Preview
Unity Package - Visual Studio Code Editor: 1.2.3 - latest
VS Code: 1.55.2 - latest
VS Code Extension - Debugger for Unity: 3.0.2 - latest
Sometimes I have the same issue, and usually putting this line, “omnisharp.path”: “latest”, in the settings solves the issue. Or removing it if it’s already there.
Thank you for suggestion. Putting the option in forced a download of new OmniSharp package and then restart of OmniSharp server. Unfortunately the issues persist. Commenting the option out later didn’t help either.
Actually it might have helped some. The issues seam less frequent now and the whole thing appears somewhat usable maybe or maybe it’s random. Need more testing.