JSDT/Debug/Using Google Chrome Debugger

From Eclipsepedia

< JSDT‎ | Debug
Revision as of 16:29, 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 Google Chrome debugger is in a experimental/propotype stage. The code is brittle and many use cases are not supported.


Overview

The Google Chrome 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. Google Chrome allows debuggers to connect as clients to WebInspector communicating with the v8 protocol.

Installing Components

  1. Install Eclipse with JSDT Debug
  2. Install Google Chrome

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 Google Chrome launching connectors, fill in the fields as needed and press debug

If you chose the Google Chrome attaching connector, and did not check the option to automatically launch the browser, you will have to ensure that Chrome is running and was started with the correct command line parameters. For example:

chrome --remote-shell-port=9222

More information on starting the browser for client connections can be found [[1]].