AJAX Debugging in MyEclipse
Note: The current debugger is available only on Windows 32-bit and Linux 32- and 64-bit. The debugger also runs on OS X 32-bit Carbon in MyEclipse 2014 and earlier. However, because MyEclipse 2015 is supported only on 64-bit Cocoa, the debugger is not available for OS X in MyEclipse 2015. A new debugger that is available for all three OSs is a high priority for the MyEclipse team and is planned to be delivered during the 2015 calendar year.
This document describes, at a high level, the steps for debugging a site with AJAX calls. If you're new to AJAX development, debugging can shorten ramp-up time on a new project if you can analyze the application from a user's perspective, as opposed to simply digging through source code and trying to learn it from the bottom up.
1.1 Opening the AJAX Web Browser
The easiest way to start debugging AJAX calls is to connect the MyEclipse AJAX Web Browser to the site you want to debug. Start a debugging session by clicking the Launch AJAX Web Browser icon on the toolbar. The AJAX Web browser opens a separate MyEclipse workbench window. When you enter a URL in the browser Address field, information appears in the views.
After the AJAX browser opens, you might be confused by the views in the window, but the important thing to note is that until you start debugging, the most important views are the MyEclipse AJAX Web Browser view and the DOM Inspector view.
1.2 Loading a Site for Debugging
Load a website into the browser to start the debugging session. Enter the URL in the Address field of the Browser view. After the page loads, click the Debug icon in the browser toolbar.
1.3 Triggering an Action
When you go back to the browser and trigger the AJAX call again, the breakpoint is hit, and the Debug perspective displays the breakpoint and variable values. Click the Resume icon to continue running the script.
monitor and other views are empty.
You are seeing this most likely because you have not clicked the Debug icon on the toolbar to load the current page into a debugging session. In debugging mode, all those views are populated.
I can't find the method being called. All
Debugging is extremely slow, how can I speed it
Background Information on AJAX
AJAX Resources, Sites and Tutorials
- Ajaxian: Excellent resource for AJAX news and resources
- Mozilla: AJAX Developer Center
- Sun: AJAX Programming in JEE