Mono Tools for Visual Studio

<-- Run on Mono on Linux Package for Linux -->


Debug on Mono on Linux

Often, the best way to work through an issue will be to debug the application on the target environment. Debug on Mono on Linux brings this functionality to Visual Studio developers by enabling remote debugging of Mono applications running on Linux.


Debug in Linux - Step 1 Step 1:

Open your solution in Visual Studio and ensure it compiles.
Debug in Linux - Step 2 Step 2:

Set your breakpoints like you would normally do.
Debug in Linux - Step 3 Step 3:

Select the Mono->Debug Remotely in Mono menu item.
Debug in Linux - Step 4 Step 4:

A dialog box will prompt you to choose from the available servers it found on you local network. If your server doesn't show up, you can manually enter in the IP address and port of the server you wish to use.


In order to find servers on the local subnet, UDP is used to broadcast over port 1900 using the multicast address 239.255.255.250. If your server is not appearing, you may want to check your firewall settings.
Debug in Linux - Step 5 Step 5:

Your application will be compiled, copied over to Linux, and automatically started. If it is a web application, it will be launched in your default Windows web browser.
Debug in Linux - Step 6 Step 6:

When the application hits the breakpoint, it will stop in Visual Studio, just like normal. From here, you can do the normal debug actions, like examine variables and call stacks.