Debug .Net Framework's source code only shows disassembly in Visual Studio 2010

Posted by jdecuyper on Stack Overflow See other posts from Stack Overflow or by jdecuyper
Published on 2010-04-28T21:38:29Z Indexed on 2010/04/28 21:47 UTC
Read the original article Hit count: 344

Hi!

I'm trying to debug .Net Framework's source code using Visual Studio 2010 Professional. I followed the steps described in Raj Kaimal's post but I must be doing something wrong since the only code I'm getting to see is the disassembly code:

alt text

As you can see in the image, the Go to Source Code and the Load Symbols options are disabled. Nevertheless, symbols are downloaded from Microsoft's server since I can see them inside the local cache directory.

The code I'm debugging goes as follow:

var wr = WebRequest.Create("http://www.google.com");
Console.WriteLine("Web request created");
var req = wr.GetRequestStream();
Console.Read();

When I hit F11 to step into the first line of code, a window pops us looking for the "WebRequst.cs" file inside "f:\dd\ndp\fx\src\Net\System\Net\WebRequest.cs" which does not exists on my machine.

What am I missing? Thanks a lot for your help.

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about source-code