Groups | Blog | Home
all groups > visual studio .net debugging > january 2004 >

visual studio .net debugging : There is no source code available for the current location. Message


Lenny
1/13/2004 8:33:06 AM
Hello,

When I am stepping through my code, when debugger cursor
reaches the last line "end sub" if I keep on hitting F11,
I am getting this message: "There is no source code
available for the current location." There's also an
option "Show disassembly information" which takes me to
what looks like compiler code. If I hit F5 from the last
line then it doesn't happen.
Why is it happening, how can I stop this. It's a big
inconvenience for me and slows me down.

Thank you for you help
Habib Heydarian [MSFT]
1/13/2004 8:46:23 AM
Lenny,

This is for a VB.NET Windows Form application, correct? Are you debugging an
event handler when this happens? Also, are you using Visual Studio 2002 or
2003? Unfortunately, this doesn't repro for me for the following sample,
which is the event handler for a button.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
MsgBox("Hello, World!") ' <- Set breakpoint here
End Sub

Does this happen all the time or just in certain cases? For example, does it
occur if you create a brand new Windows Form app, add a button and create a
very simple event handler for the button?

HabibH.

[quoted text, click to view]

Lenny
1/13/2004 9:04:54 AM
This is actually ASP.NET application. It happens when
debugging all exsisting files.
However, I just added a new file to the project, set a
breakpoint, and that that annoying message didn't happen.
Then I tried reproducing it in a new Windows application,
and it wasn't happening there either.
So it must be something about that ASP.NET project or some
files in that project. Any ideas?

Thank you!

[quoted text, click to view]
Lenny
1/13/2004 11:02:05 AM
To answer all of your questions:

It's an ASP.NET application, VS.NET 2003 and yes, I am
debuging event handler Page_Load event.


[quoted text, click to view]
AddThis Social Bookmark Button