BUG: Client-Side Breakpoints in Active Server Pages Not Hit with Internet Explorer 5 Installed

ID: Q233035


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0
  • Microsoft Internet Explorer version 5 for Windows NT 4.0


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 or debugger statement in your client-side code.


  • Manually attach the debugger. Please refer to the following Knowledge Base article on how to manually attach the debugger:
    Q196378 HOWTO: Debugging Active Server Pages Applications Manually
    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 this to be a bug in the Microsoft products 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.


Additional query words:

Keywords : kbASP kbDebug kbScript kbVisID600 kbVisID600bug kbGrpASP kbIE500
Version : WINDOWS:5,6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: January 26, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.