microsoft / vscode-mono-debug

A simple VS Code debug adapter for mono
Other
159 stars 173 forks source link

Error when trying to debug (f# on mono on OS X) #2

Closed weinand closed 8 years ago

weinand commented 8 years ago

From @mmc41 on November 20, 2015 18:38

When I try to debug a small hello-world like fsharp 4.0 program like the attached, I get an error "error while processing request '{_request}' (exception: {_exception})" in Visual Code 0.10.1 on OS X 10.10.5 on mono 4.2.1. The associated launch.json file is as follows: { "version": "0.2.0", "configurations": [ { "name": "Launch", "type": "mono", "request": "launch", "program": "hello2.exe", "args": ["test","test2","bla"], "cwd": ".", "runtimeExecutable": null, "env": {} }, { "name": "Attach", "type": "mono", "request": "attach", "address": "localhost", "port": 5858 } ] }

hello2.txt

Copied from original issue: Microsoft/vscode#370

weinand commented 8 years ago

From @Oipo on November 21, 2015 7:59

Same for me, VSCode 0.10.1, linux, using mono C#.

weinand commented 8 years ago

From @borgdylan on November 22, 2015 12:50

I can repro using a custom .NET language on Linux x86 using v. 0.10.1 as well. This used to work for plain .NET console apps in past versions.

weinand commented 8 years ago

This is a duplicate of #1.

amansingh36 commented 8 years ago

@weinand, I'm also getting the same error. How we can solve this?

amansingh36 commented 8 years ago

@mbcrump, I'm getting the same error. How we can solve this?

ghost commented 8 years ago

Me too!

weinand commented 8 years ago

@thibault1907 most likely this is a problem with passing environment variables to mono-debug. Please remove the "env": {} from your launch config and try again. This bug will be fixed in the December release.

weinand commented 8 years ago

@thibault1907 if this hypothesis is correct, then you can try a newer pre-release of mono-debug which fixes this issue. Please see the most recent comments on issue #1