Debugging ASP.NET Page

a1jit

Regular
Joined
Aug 19, 2005
Messages
89
Hi Guys

Actually im just a bit confused on asp.net page

my asp page has html plus some c# code in it

like this

Code:
<%@ Page Language = "C#" %>

<script runat = server>
...some code
</script>

<html>
something
</html>

So, to debug, i change the directive to this
Code:
<%@ Page Language = "C#" Debug = true%>

And i placed my breakpoints..

Everything worked fine..

Only problem was lets say i place breakpoints at line 8, the code stops there, just as i want, but the value for the variable is not displayed when i place my cursor there..

Lets say Line8 has this statement

Code:
result = i+b;

And when i place my cursor at result, the value for result wont appear..

So how can i overcome this?
Thank You
 
You could set up a watch or do a Quick Watch.

Also, result won't be set until Line 9 - at Line 8 you're setting value.
 
Back
Top