Debug JavaScript From Eclipse With ChromeDevTools
Join the DZone community and get the full member experience.
Join For FreeGoogle have just released ChromeDevTools, which enables developers to debug JavaScript for the Chrome browser from Eclipse.
The 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.
- An Eclipse debugger that uses the SDK. This debugger enables you to debug JavaScript running inside Google Chrome tabs from the Eclipse IDE. This means you can set breakpoints, inspect variables and evaluate expressions just like you would using the JDT in Eclipse. The screenshot shows the debugger in action stopped at a breakpoint.
Full details, and instructions on how to get setup are available on the ChromeDevTools project page. I'm happy to see this consistent backing from Google for Eclipse plug-ins since the Android developer tools.
Published at DZone with permission of James Sugrue, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments