Skip to main content

Posts

Showing posts with the label visual studio

How to debug OWIN related stuff using Symbol Source

I ran into a situation today wherein I was required to debug the Google Authentication middleware built on top of OWIN. I already had the code checked out from Katana project in CodePlex. However, when I tried to use, it was the latest bits [dev channel]. My app was using the version 2.1 and the dev version was in 3.0. Tired of searching the tag for the version 2.1, I came to know that the symbols for the various open source projects are made available from SymbolSource.org Given this piece of information, I read the steps on how to configure the symbol server in Visual studio and then upon successful source registration, I was able to step through the middlewares and do the debugging stuff. Things that I did were, Grab the public [authentication less uri access] from Symbol Source [ http://srv.symbolsource.org/pdb/Public] Go to Tools -> Options -> Debugger -> General. Uncheck “Enable Just My Code (Managed only)”. Uncheck “Enable .NET Framework source stepping”.

Debugging application running in IIS Express

In order to debug the application that is run in IIS Express in visual studio, following are the steps 1. Run the application /s in IIS express configured in visual studio 2. In the system tray or task bar near by the system clock, IIS express icon will be shown. Click on it and click on "show all application" 3. All the application hosted in IIS express will be shown along with the corresponding process ids. 4. In visual studio, go to Tools > Attach to process > in the processes, order by the process I'd and choose the correct process I'd to debug the application. 5. If the process is not listed there, pick on the "show process from all user account" check box in the bottom left corner of the window. 6. Leave a break point in the source and that's it. Hope this helps.