16
votes

I'm trying to setup Visual Studio Code (https://code.visualstudio.com/docs/debugging ) to debug c#/mono on win8. I have also installed the latest version of mono.

I added a config to launch.json and changed the 'type' to mono(also tried pointing 'program' at the debug exe) but I just get the error:

initialize: can't create debug session for adapter ID "mono"

how do you setup debugging on a c# project?

edit: seems like a gulp script may be required? Compiling C# projects with VSCode on Ubuntu

1
you debug by setting up your default language, then you set some break points.. then click F5 also do a MSDN Windows 8 Debugger google search - MethodMan
I have the same problem when trying to debug a simple console application on Windows 7. Running with dnx is no problem. Any more feedback on this one? - Luc Wollants
Not exactly mono, but there is a VS Code extension now for coreCLR marketplace.visualstudio.com/items?itemName=ms-vscode.csharp - Chromableed Studios

1 Answers

7
votes

Visual Studio Code: Preview currently does not support mono debugging on Windows. Debugging mono is only supported for Linux and Mac at the moment. Node debugging is supported on Windows, Linux and Mac.