Debugging Classic .NET Projects on Mono

To run and debug .NET projects on Mac, or to explicitly test against the Mono runtime on Windows, you need to have the Mono runtime installed. You can typically check if Mono is installed by running the mono command in Terminal/Command Prompt.

With a default installation, the IDEs will usually find the Mono runtime automatically, but the following topics will help you set up Mono or point your IDE to a custom Mono install:

Launching

Fire will automatically use the Mono runtime for launching (non-Core) .NET projects on the Mac. In Water, you can choose between using Mono or Microsoft's Common Language Runtime (the default), by setting the Debug Engine in Project Settings to Mono instead of CLR.

Debugging with the Mono runtime is not supported from Visual Studio.

Debugging

Once your your application is launched, you can debug your code the same as you would any other project. For example, you can set Breakpoints to pause execution when a certain part of your code is hit, and you will automatically "break" into the debugger, if any Exception occurs.

See Also