Giter Club home page Giter Club logo

cdt-java's Introduction

Google Chrome Developer Tools for Java

The project has been discontinued

This project provides debugging tools for developers writing applications that run on Google Chrome or its open-source version Chromium or any V8-based application. The tools enable you to debug JavaScript inside these browsers over the TCP/IP protocol. If you are looking for information on the Google Chrome browser built-in Developer Tools, please have a look at this official primer.

This project comprises:

  • A ChromeDevTools SDK that provides a Java API that enables a debugging application to communicate with a Google Chrome browser from the localhost using the TCP/IP-based Google Chrome Developer Tools Protocol or WebKit Remote Debugging Protocol.
  • An Eclipse debugger that uses the SDK. This debugger enables you to debug JavaScript running inside Google Chrome tabs from the Eclipse IDE.

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.

What’s new

Version 0.3.8 has been released. What’s new? How to install?

Using the Eclipse Debugger

Prerequisites:

  • Eclipse version 3.5 or later (minimal configuration is Eclipse Platform).
  • Java Vm version 1.6 or later.
  • Google Chrome (or Chromium) See version compatibility table for details.

Installation:

How to Debug:

  1. Close all windows of Google Chrome or Chromium browsers. (Debug command-line option doesn’t work for secondary browser processes).
  2. Start the Google Chrome (or Chromium) browser as: chrome --remote-debugging-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.
  3. Start Eclipse and create a new debug configuration (under Run | Debug Configurations…) from the “WebKit Protocol” configuration type (you might need to switch to the Debug perspective first):

image

(Note that failing to see these configuration types is a very likely sign of an incorrect Java VM version). Then specify the debugger port you have chosen, in the “Remote” tab. Also you need to select a proper WebKit protocol version in Wip backend field.

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

See https://github.com/ChromeDevTools/cdt-java/wiki/Debugger-Tutorial for more details. If you found a bug or some other problem, please, report to us.

cdt-java's People

Contributors

paulirish avatar pavelfeldman avatar prybin avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.