|
Speaker: Michelle Petersen
Examine values and types of variables while you debug.
|
My name is Michelle, and I'm going to be demonstrating the variable functionality
of the Aptana JavaScript Debugger.
To start, I'm going to click the "Debug" button to debug my web page. Still up on
the page in Firefox, and I'm going to click "Start test," which is going to suspend
the thread at the correct place for this demonstration. I'm going to switch back to
Aptana. It's telling me to switch to the "Debug perspective," which is what we want.
Now, where I've got this thing breaking, it's going to show me the values for
these variables at this moment, so if I switch the Variables View here, you can
see that it's showing me that the value, vArray, is item0 to itemN. The value of
vBool is false. The value of vDate is the date, vError is "error", VNum is 7. As
you can see, it's also showing the values down here in this part of the window as
well.
If I want to find out a little bit more information about my variables, I can click
this "Show type names," and it'll show me that vNum is a number, vObject is an object,
vObject2 is an object, vError up here is an error, so I could get more information about
my variables that way. This is really helpful if you're trying to diagnose type issues.
That concludes this demonstration. Thank you.
[End of Video]
|