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.
Step 1:
Open your solution in Visual Studio and ensure it compiles.
Step 2:
Set your breakpoints like you would normally do.
Step 3:
Select the Mono->Debug Remotely in Mono menu item.
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.
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.
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.