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

ID: Q233035


The information in this article applies to:


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:

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:


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.



REFERENCES

Please refer to the following Web site for related debugging articles:

http://msdn.microsoft.com/vinterdev/technical/articles/debug.asp

Additional query words:


Keywords          : kbDebug kbVisID600bug kbGrpASP kbScriptDebugger kbIE500 
Version           : WINDOWS:5,6.0
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: July 21, 1999