I have the following line of code in VS2008.
VirtualPathData virtualPathData =
RouteTable.Routes.GetVirtualPath(_viewContext.RequestContext,
"Home",
pageLinkValueDictionary);
I wish to debug this GetVirtualpath(..)
method .. to see what it's trying to do.
I'm assuming I need to grab the symbols from the MS symbol server.
What I did was
Compile in debug mode, put a breakpoint on that line about and debug-run. When I hit the line, I manually load in System.Web.Routing(..)
from MS Symbol server. This works (the pdb is downloaded locally) and when i step INTO this line, I goto some Dissassemler code :(
Can anyone see what I'm doing wrong?
That the symbols file is downloaded doesn't mean that sources are available for it, the pdb needs to be source indexed as well.
From Scott Guthrie's announcement:
We'll begin by offering the source code (with source file comments included) for the .NET Base Class Libraries (System, System.IO, System.Collections, System.Configuration, System.Threading, System.Net, System.Security, System.Runtime, System.Text, etc), ASP.NET (System.Web), Windows Forms (System.Windows.Forms), ADO.NET (System.Data), XML (System.Xml), and WPF (System.Windows). We'll then be adding more libraries in the months ahead (including WCF, Workflow, and LINQ). The source code will be released under the Microsoft Reference License (MS-RL).
It seems System.Web.Routing isn't included here.
You can however download the MVC Source, then you should be able to use the pdbs you downloaded against that source.