Debugging Basic Acceptance Tests
From Aptana Development
Contents |
General
- Check to make sure that Firefox profile is created by default on first run of the IDE. Delete the profile and it should be recreated.
- Remove any existing Aptana/Firebug extension in Firefox. Restart it and close(required).
- Open a project file (e.g. debug_tests.html), launch the debugger the first time and accept Aptana Debugger installation.
- Go through the set of tests in debug_tests.html to verify stepping, breakpoints, console output and variables.
Breakpoints
- Open the launch configuration and go through Breakpoints test in combination with the following options:
- Non-project file + current page option
- Current page - a file opened in the current page editor should be opened
- Specific page - click Browse and select debug_tests.html file
- Use external web server + current page
- Use external web server + specific page
- Use external web server + start URL (Start URL should be a subpath of external web server base URL to get breakpoints working)
- Open Breakpoint Properties dialog
- set hit count
- set condition text
- mark breakpoint disabled
- Open a new HTML FIle
- Add a <script> tag with the following content
var j = 3;
function evaled(j) {
j += j;
j *= j;
}
eval("evaled(j)");
- Set a breakpoint at the eval line
- Debug this file
- When the breakpoint it hit select Step Into
- Ensure the evaled function is stepped into
- Step over evaled function
- Ensure j is updated in the Variables view
Views
Debug
- verify debug actions are available during debugging
- select different stack frame elements in the debug tree
Console
- check debug messages are displayed
- click on hyperlinks on console
Variables
- navigate variables tree when script execution is suspended
- use Change value... to modify variables
- define a new detail formatter, see values in details pane
Expressions
- create a new watch expression
- define a new watch expression from Variables view on selected variable [works for scope and this variables only, for now]
- change a variable value
Scripts
- select script elements to navigate to source code
Ajax Monitor
- select "JS Debugger" in Debug view
- run XMLHttpRequest sniffing test and see results in the view
- selectBody/Headers tabs


