Microsoft KB Archive/233035

From BetaArchive Wiki

Article ID: 233035

Article Last Modified on 10/16/2002



APPLIES TO

  • Microsoft Internet Explorer 5.0
  • Microsoft Visual InterDev 6.0 Standard Edition



This article was previously published under Q233035

SYMPTOMS

If Internet Explorer 5.0 is installed, when automatically debugging an Active Server Pages (ASP) page that has client-side breakpoints, the client-side breakpoints are not hit. Both breakpoints set in server-side code in ASP pages and breakpoints set in client-side code in HTML pages are hit.

CAUSE

In order to hit embedded client-side breakpoints, two things need to be set:

  • The Web application must have debugging turned on in the Internet Service Manager.
  • The ASPCLIENTDEBUG cookie must be set for the Web folder.

Visual InterDev is setting the cookie in the "<username>\Cookies" folder but Internet Information Server is looking for the cookie in the "default user\Cookies" folder.

RESOLUTION

There are multiple workarounds for this issue:

  • After you have started the debugger and the ASP page has come up in your browser, from the Running Documents window, double-click your page, which shows up under the Microsoft Internet Explorer process. Set your breakpoint.
  • Put a stop (VBScript) or debugger (JavaScript) statement in your client-side code. For example:

    <SCRIPT Language="VBScript">
      Stop
      'Code to be debugged follows this comment
    </SCRIPT>
    
    <SCRIPT Language="JavaScript">
      debugger
      //Code to be debugged follows this comment
    </SCRIPT>
                        
  • Manually attach the debugger. For more information on how to manually attach the debugger, see the following Knowledge Base article:

    196378 HOWTO: Debug ASP Applications Manually Against Windows NT 4.0 Web Server

    NOTE: In order to debug the client-side code, you will also have to attach to the appropriate Iexplore.exe process.
  • Uninstall Internet Explorer 5 and revert back to Internet Explorer 4.0.


STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Add a new ASP page and replace the text with the following text:

    <%@ Language=VBScript %>
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    function button1_onclick() {
        alert("hello world");
    }
    </SCRIPT>
    </HEAD>
    <BODY>
    
    <INPUT type="button" value="Button" id=button1 name=button1 LANGUAGE=javascript onclick="return button1_onclick()">
    
    </BODY>
    </HTML>
                        
  2. Set a breakpoint on line 7 (the alert statement).
  3. Right-click the new ASP page in the Project Explorer and select Set as Start page.
  4. From the Debug menu, select Start.
  5. Once the page has opened in Internet Explorer 5, click the button and notice that it does not break into the client-side code.


REFERENCES

For a list of related debugging articles, see the following Microsoft Knowledge Base article:

244272 INFO: Visual InterDev 6.0 Debugging Resources


Keywords: kbbug kbscript kbdebug KB233035