Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vscode: how to setup debugging mono/c#?

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

like image 984
Chromableed Studios Avatar asked Apr 29 '15 21:04

Chromableed Studios


People also ask

Can you Debug C in VS Code?

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)

How do I enable VS Code debugging?

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.

How do I set debug mode in Visual Studio?

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).

How do I Debug code in Visual Studio line by line?

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.


1 Answers

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.

like image 55
Isidor Nikolic Avatar answered Sep 30 '22 15:09

Isidor Nikolic