Debug - no source code available for the current location

Last post 07-04-2008 6:34 AM by Thomas Sun – MSFT. 2 replies.

Sort Posts:

  • Debug - no source code available for the current location

    07-01-2008, 1:24 PM
    • Loading...
    • wgg117
    • Joined on 03-18-2008, 4:02 PM
    • Posts 41

    I have a program running ok. but today I tried to compile my application I got :

     "-  no source code available for the current location".

    It goes to the file  of  Assembly, but failed to go to second file that it referenced and give me the above error.

    Help please 

  • Re: Debug - no source code available for the current location

    07-01-2008, 1:37 PM
    • Loading...
    • ScottR27
    • Joined on 02-14-2008, 10:27 AM
    • Maryland
    • Posts 59

     Hi wgg117,

    I assume you do have the source code and the .pdb file?  If so,  open the .pdb file in notepad.  Scroll down and you will see an absolute path source files.  Make sure your source files are in the path specified in the .pdb file.

     

    Hope this Helps,

    Scott

  • Re: Debug - no source code available for the current location

    07-04-2008, 6:34 AM
    Answer

    Hi,

    Did you get "There is no source code available for the current location" error message when you try to insert breakpoint?

    This error message means that Visual Studio debugger cannot locate the source file for current location.

    You can try the following ways:

    • Disable debugger to look for source files when debugging (Tools -> Options -> Debugging -> uncheck "Require source files to exactly match the original version").
    • Add the location of this page's source code to "Debug Source Files". (Right-click Solution name in Solution Explorer and select Properties from the shortcut menu. Expand the Common Properties folder, and click the Debug Source Files page)

    For more information about debugging, see http://blogs.msdn.com/jimgries/pages/visual-studio-debugger-faq.aspx (Section: Breakpoints ).

     

    I hope this helps.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (3 items)
Microsoft Communities
Page view counter