My favorites | Sign in
Google
                
Code license: New BSD License
Labels: Google, Chrome, Chromium
Feeds:

Google Chrome Developer Tools

This project provides debugging tools for developers writing web applications that run on Google Chrome or its open-source version Chromium. The tools enable you to debug JavaScript inside the browser over the TCP/IP protocol.

The project comprises:

As the SDK and Eclipse debugger are written in Java, this project is of most benefit to developers who use Java tools for debugging web applications inside Google Chrome. You can use the SDK to write your own debugger that uses the protocol to communicate with Google Chrome.

Using the Eclipse Debugger

Prerequisites:

Installation:

How to Debug:

  1. Start the Google Chrome (or Chromium) browser as:
    chrome --remote-shell-port=9222 (or some other debugger port of your choice.) Make sure your firewall blocks incoming connections to the chosen port from other machines. Open the URL you want to debug.
  2. Start Eclipse and create a new debug configuration (under Run | Debug Configurations...) from the "Chromium JavaScript" configuration type (you might need to switch to the Debug perspective first):







    Specify the debugger port you have chosen, in the "Remote" tab:







  3. Start debugging. When prompted, select the tab to debug and click the "OK" button.
  4. In a short while, you will see the browser script sources in a new project.