RE: There is no source code available for the current location

From: David Williams (DavidWilliams_at_discussions.microsoft.com)
Date: 06/28/04


Date: Mon, 28 Jun 2004 11:06:03 -0700

Normally when I see this message it is due to attempting to debug into an assembly that is no longer associated with VS.NET. I.E. I have a component that I wrote sometime ago that teh source code is not on this system.

There is one other time that I have seen this happen which is when the assemply that I am debugging has been set to read-only, I re-complied it in a different instance of VS.NET and the current copy of the DLL did not get updated. Now when I attempted to debug, as the source lines no longer match the IL, I would get this message.

HTH

-- 
David Williams, VB.NET MVP
"Frasse" wrote:
> Hello all,
> 
> when i'm stepping through my code the IDE suddenly do not find source
> code anymore. A window pops up and shows the message "There is no
> source code available for the current location".
> 
> How can i get rid of this feature/bug?
> 
> I have built all from scratch ,cleared all precompiled files,
> unchecked the "Unmanaged code debugging" checkbox. Still the same
> message.
> 


Relevant Pages

  • Re: Debug and break point problem - There is no source code available
    ... manually recreate all the classes and then paste the code in... ... I, too, moved the source code from one ... > I started a new project and confirmed that I can debug it. ... >> I had to manually change the reference in the Solution properties. ...
    (microsoft.public.dotnet.general)
  • Re: Unable to DEbug the Driver in the user mode
    ... I have Printer driver code which uses uniDrv & OEMUI code. ... ANOTHER INTEROP dLL WHICH TRANSFER THE BYTE ARRAY TO .nET ... I am getting some information about the debug content ... but I am not able to debug source code line by line. ...
    (microsoft.public.development.device.drivers)
  • Re: debugging in release mode
    ... The idea that source code was in the .exe was my misconception. ... The alert is a callback. ... SInce I now know that it is not giving away any secrets to deliver debug ... and then turn off optimizations and turn on generation of debug ...
    (microsoft.public.vc.mfc)
  • Re: Seg fault even though address space is accessible
    ... There's a guy around here somewhere who can debug your problem (no ... matter what it is) using only the debugger. ... debugger and not seeing the source code. ... I did extend the position held by one of the trolls that the debugger ...
    (comp.lang.c)
  • Re: Big problems with glibc - how to debug?
    ... >> kernel services back ported to the Red Hat 2.4 kernels. ... Hat installs. ... this that I can debug with source code;-) ... > have a one-line change in source code which triggers the problem. ...
    (comp.os.linux.development.apps)