Consider the code belowin my aspx file. When i set a breakpoint on the line "alert(ik)" the debugger never stops there. The code executes normally, so i see the alert box. but it never hits the breapoint.
Steps i've taken:
- I have firefox as default browser on my system
- After installing the beta of VS2008. Created a new website and entered the code below.
- Right-clicked on the default.aspx file and set Internet explorer as the default browser there.
- Enabled script debugging in IE (only for IE, not for others)
- F5 :)
- Nothing happens in the debugger, but the code executes normally
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script type="text/javascript">
function test()
{
var ik = "";
ik = "ddfqsdqsd"
alert(ik); //breakpoint here
}
</script>
</head>
<body onload="alert();">
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>