JSDT/Debug/Using Crossfire Debugger

From Eclipsepedia

< JSDT‎ | Debug
Revision as of 16:20, 20 July 2010 by Michael Rennie.ca.ibm.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Warning2.png
Experimental Code
The Crossfire debugger is in a experimental/propotype stage. The code is brittle and many use cases are not supported.


Overview

The Crossfire debugger is an experiment to see if the JSDT debugger apis can be hooked up to another debugger that was not co-developed with JSDI in mind. Crossfire is an extension to Mozilla's Firebug that supports JavaScript debugging on mobile devices and browsers.

Installing Components

  1. Install Eclipse with JSDT Debug
  2. Install Firebug
  3. Install Crossfire - the latest version of crossfire (0.2a5 at the time of this writing)

Creating the Configuration

Once everything is installed and ready to go simply:

  1. open the launch configuration dialog in debug mode
  2. create a new JavaScript configuration
  3. select one of the Crossfire launching connectors, fill in the fields as needed and press debug

If you chose the Crossfire attaching connector, and did not check the option to automatically launch the browser, you will have to ensure that FireFox is running and Crossfire is listening in server-mode.

If, however, you chose the listening connector, you will now have to start your browser (or switch to it if it is already running) and connect back to Eclipse.