Debugging Flex Wiki
Last changed: -66.78.118.3

.
Summary

When I checked out FlexWikiCore, I didn't get the settings necessary for debugging. Here's what I did to set it up.

It's definitely easiest if you are running as an administrator on your development machine. It's not impossible to do it as a non-privileged user, but you're on your own.

  1. First, make sure you've built FlexWiki and can access your Wiki at http://localhost/FlexWiki/.
  2. Set FlexWiki.Web as the startup project.
  3. Change the project properties for FlexWiki.Web as follows:
    1. Enable ASP.NET Debugging: True
    2. Debug Mode: URL (click Apply after setting this)
    3. Start URL: http://localhost/flexwiki/default.aspx
  4. Set a breakpoint at a convenient place. I set it at WikiEdit.DoPage() to see Wiki start up normally before hitting a breakpoint.
  5. Click Start, and edit a page or do whatever it takes to hit your breakpoint.

Happy Stepping!

The above notes did not work for me in order to debug FlexWiki 2. I believe that they may be for debugging earlier releases of FlexWiki that were compiled on VS 2003.

Here is what I had to do to debug FlexWiki 2 with VS 2005 on Vista (with a little help from Craig)

  1. Get http://localhost/FlexWiki to display in your web browser
  2. Open the FlexWiki.Web project in VS 2005 as administrator. If you are running Vista, you can do this by right clicking on the Visual Studio shortcut and picking run as administrator from the context menu.
  3. On the debug menu, select Attach to Process...
  4. Check Show processes in all sessions and select w3wp.exe (or aspnet_wp.exe in Windows XP) as the process to debug.
  5. Set a breakpoint in the code you want to debug.
  6. In the browser, navigate to a topic in the localhost version of FlexWiki that should pass through the debug point.