BUG: Error "Source Code Is Not Available for the Current Statement" (191273)



The information in this article applies to:

  • Microsoft Visual InterDev 6.0

This article was previously published under Q191273

SYMPTOMS

When you run an Active Server Pages (ASP) page with Step Into, a stop or debugger statement, or breakpoints under the debugger, you may receive the following error message:
Source code is not available for the current statement

CAUSE

The behavior is caused by attempting to have the debugger break on a line that is non-procedural script within a script tag (instead of within a <% %>). The break can be caused by an error, a stop or debugger statement, or by a breakpoint on that line.

RESOLUTION

To resolve this problem, place the script within inline script tags.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a new Web project.
  2. Add an ASP page with the following code:
          <SCRIPT LANGUAGE=JScript RUNAT=Server>
             i = 10
          </SCRIPT>
    						
  3. Set the project to auto-enable debugging.
  4. Set a breakpoint on the "i=10" line in the JScript block. Press F5.
The debugger attaches and the following error appears:
Source code is not available for the current statement

Modification Type:MinorLast Reviewed:3/7/2005
Keywords:kbBug kbDebug kbide kbpending KB191273