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
Visual Studio Code supports the following debuggers for C/C++ depending on the operating system you are using: Linux: GDB. macOS: LLDB or GDB. Windows: the Visual Studio Windows Debugger or GDB (using Cygwin or MinGW)
To bring up the Run and Debug view, select the Run and Debug icon in the Activity Bar on the side of VS Code. You can also use the keyboard shortcut Ctrl+Shift+D. The Run and Debug view displays all information related to running and debugging and has a top bar with debugging commands and configuration settings.
In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release. Select the Advanced button (or the Advanced Compile Options button in Visual Basic).
Run to a breakpoint in code You can also select the line and then select F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert Breakpoint. The breakpoint appears as a red dot in the left margin next to the line of code. The debugger suspends execution just before the line runs.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With