Case Status Kiln
Register Log In


"How To" Guides»Plugin Debugging
  • RSS Feed

Last modified on 9/7/2010 8:19 AM by User.


Plugin Debugging

"How To" Guides >  Plugin Debugging



If you have your test installation of FogBugz running on the same Windows machine where you develop, you can use the instructions below to debug your plugin.  These instructions assume you have already setup FogBugz and either Visual Studio or Visual C# Express (see A Quick Start Guide ("Hello, world") for instructions).

Note: These instructions apply to the Pro, Premium and Ultimate versions of Visual Studio only as the Express editions lack the ability to attach to a process or do remote debugging.

Debugging Your Plugin Locally

  1. Open your plugin solution in Visual Studio
  2. Make sure the Solution Configuration is set to Debug
  3. Build the solution
  4. Upload it to FogBugz and hit a page to make sure it is loaded with no errors
  5. In Visual Studio, under the Debug menu select Attach To Process
  6. Make sure the following is in the Attach To box (you can set it manually by clicking Select...)
    • Visual Studio 2005 and 2008: Managed Code
    • Visual Studio 2010: change Managed (v4.0) to Managed (v2.0, v1.1, v1.0)
  7. Select your ASP.NET/IIS process, probably either w3wp.exe or aspnet_wp.exe
  8. Click Attach, then Attach again in the confirmation dialog
  9. Right click on a line in your plugin and add a Breakpoint
  10. Load the appropriate pages in FogBugz to test your plugin

Remote Debugging

Remote debugging is possible using the Visual Studio remote debugger.  See this MSDN article for how to do it in Visual Studio 2005.