A simple VS Code debug adapter for mono
Перейти к файлу
Andre Weinand 7ea257ad0d Announce windows support in changelog 2017-02-27 13:25:15 +01:00
.nuget add .nuget folder 2015-11-11 14:16:11 +01:00
.vscode fix deprecation 2017-02-24 20:40:11 +01:00
Properties update date 2016-02-21 01:55:37 +01:00
images add icon 2016-02-19 19:17:48 +01:00
sdb@61e0e3bef2 remove dead wood 2017-02-24 23:58:10 +01:00
src refactor a lot and merge scope 'arguments' into 'locals' 2017-02-26 23:23:35 +01:00
tests update to VS Code 1.6 2016-09-23 15:21:48 +02:00
.gitignore fix problem with external console 2016-03-04 23:38:21 +01:00
.travis.yml remove dependency to sdb repository 2016-11-01 10:54:17 +00:00
.vscodeignore add changelog; fixes #20 2017-02-24 20:40:11 +01:00
CHANGELOG.md Announce windows support in changelog 2017-02-27 13:25:15 +01:00
LICENSE.txt Updating license to standard Microsoft header. 2015-11-23 17:52:04 -08:00
Makefile remove dependency to sdb repository 2016-11-01 10:54:17 +00:00
README.md Fixed readme 2017-02-26 23:54:50 +01:00
TerminalHelper.scpt move terminahelper to correct place 2015-11-11 10:38:06 +01:00
ThirdPartyNotices.txt Update ThirdPartyNotices.txt 2015-11-17 15:51:18 -08:00
mono-debug.csproj refactor a lot and merge scope 'arguments' into 'locals' 2017-02-26 23:23:35 +01:00
mono-debug.sln refactor a lot and merge scope 'arguments' into 'locals' 2017-02-26 23:23:35 +01:00
package.json Announce windows support in changelog 2017-02-27 13:25:15 +01:00
package.nls.json remove unused strings 2016-02-19 22:49:12 +01:00
packages.config update json library 2017-02-24 20:40:11 +01:00

README.md

VS Code Mono Debug

A simple VS Code debugger extension for the Mono VM. Its implementation was inspired by the SDB command line debugger.

Installing Mono

On Linux or OS X, the Mono debugging support of VS Code requires Mono version 3.12 or later.

You can either download the latest Mono version for Linux or OS X at Mono project or you can use your package manager.

  • On OS X: brew install mono
  • On Linux: sudo apt-get install mono-complete

Enable Mono debugging

To enable debugging of Mono based C# (and F#) programs, you have to pass the -debug option to the compiler:

mcs -debug Program.cs

If you want to attach the VS Code debugger to a Mono program, pass these additional arguments to the Mono runtime:

mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55555 Program.exe

The corresponding attach launch.json configuration looks like this:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to Mono",
            "request": "attach",
            "type": "mono",
            "address": "localhost",
            "port": 55555
        }
    ]
}

Building the mono-debug extension

build status

Building and using VS Code mono-debug requires a basic POSIX-like environment, a Bash-like shell, and an installed Mono framework.

First, clone the mono-debug project:

$ git clone https://github.com/Microsoft/vscode-mono-debug

To build the extension vsix, run:

$ cd vscode-mono-debug
$ npm install
$ make