BlogEngine.Net Tutorial - Debug Remotely in Mono

Step 1:

Open the BlogEngine solution in Visual Studio.

Step 2:

Open default.aspx.cs.

Step 3:

Set a break point on the first line of the Page_Load method.

Step 4:

In the Mono menu, click "Debug Remotely in Mono".

Step 5:

The MonoVS Choose Remote Host dialog will appear. Choose the host to remotely debug on and click the "Ok" button.

Depending on the setup, this process may take awhile to complete as BlogEngine is copied to the remote host in order to be able to be debugged.

Step 6:

A bubble will appear over the MonoVS tray application informing that a remote instance of BlogEngine is running.
Step 7:

Visual Studio will stop at the break point.

Step 8:

Notice that local variables can be inspected inside Visual Studio.

Step 9:

Notice that the call stack can be inspected inside Visual Studio.

Step 10:

In the immediate window, type "Page.IsCallback" and press enter. Notice that the immediate window says that Page.IsCallback is currently set to "false."

Step 11:

In the Debug menu, click "Step Over."

Step 12:

In Visual Studio, Press the "Play" button to continue running BlogEngine.

Step 13:

BlogEngine will be launched in the default browser.

Step 14:

To stop this instance of BlogEngine, right click on the MonoVS tray icon and click "Stop".