<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to HowToDebug</title><link>https://sourceforge.net/p/chromedevtools/wiki/HowToDebug/</link><description>Recent changes to HowToDebug</description><atom:link href="https://sourceforge.net/p/chromedevtools/wiki/HowToDebug/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 25 Apr 2015 13:43:50 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/chromedevtools/wiki/HowToDebug/feed" rel="self" type="application/rss+xml"/><item><title>HowToDebug modified by Anonymous</title><link>https://sourceforge.net/p/chromedevtools/wiki/HowToDebug/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="how-to-debug"&gt;How to Debug&lt;/h1&gt;
&lt;p&gt;(For tutorial on how to use ChromeDevTools &lt;a class="" href="/p/chromedevtools/wiki/EclipseDebugger"&gt;Debugger&lt;/a&gt; to debug JavaScript see the &lt;a class="" href="/p/chromedevtools/wiki/DebuggerTutorial"&gt;dedicated page&lt;/a&gt;. This page is about debugging Debugger itself.) &lt;/p&gt;
&lt;p&gt;Since the project is written in Java, it must be relatively easy to debug it from a Java IDE. &lt;/p&gt;
&lt;p&gt;You may want to look inside the running code if you are wondering how it works or if you see a problem and wish to contribute to the project by investigating. &lt;/p&gt;
&lt;p&gt;See also &lt;a class="" href="/p/chromedevtools/wiki/HowToBuild"&gt;HowToBuild&lt;/a&gt;, &lt;a class="" href="/p/chromedevtools/wiki/HowToReportProblem"&gt;HowToReportProblem&lt;/a&gt;. &lt;/p&gt;
&lt;h2 id="debugging-eclipsedebugger"&gt;Debugging &lt;a class="" href="/p/chromedevtools/wiki/EclipseDebugger"&gt;EclipseDebugger&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Our Debugger is an Eclipse plugin (technically a set of plugins), so you have to start the entire Eclipse (here called &lt;em&gt;debuggee&lt;/em&gt;) under a Java debugger. Fortunately Eclipse framework is quite prepared for this. What you need is just another Eclipse instance (here called &lt;em&gt;debugger&lt;/em&gt;) with installed &lt;code&gt;Plugin Development Environment&lt;/code&gt; feature (Eclipse Classic has it preinstalled). &lt;/p&gt;
&lt;p&gt;&lt;em&gt;Debuggee&lt;/em&gt; must have usual &lt;code&gt;Chromium JavaScript Remote Debugger&lt;/code&gt; feature plus &lt;code&gt;ChromeDevTools Project Source Code&lt;/code&gt; feature (one prepared specifically for such occasions). (We assume you are &lt;em&gt;installing&lt;/em&gt; debugger, not &lt;a class="" href="/p/chromedevtools/wiki/HowToBuild"&gt;building it from sources&lt;/a&gt;, otherwise you don't need such instructions.) &lt;/p&gt;
&lt;p&gt;Start &lt;em&gt;debugger&lt;/em&gt;. First, some steps to prepare it: &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In &lt;code&gt;Preferences&lt;/code&gt; under &lt;code&gt;Plug-in Development&lt;/code&gt; set up new &lt;code&gt;Target Platform&lt;/code&gt;: press &lt;code&gt;Add&lt;/code&gt;, &lt;code&gt;Start with empty&lt;/code&gt;, &lt;code&gt;Add Installation&lt;/code&gt; and enter a path to your &lt;em&gt;debuggee&lt;/em&gt; installation directory. To double-check, it should find some plugins while in the same dialog window. &lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;Plug-in Development&lt;/code&gt; perspective. On the left choose &lt;code&gt;Plug-ins&lt;/code&gt; tab. In the tab choose all &lt;code&gt;org.chromium.*&lt;/code&gt; plugins (or better all plugins) and from context menu make &lt;code&gt;Add To Java Search&lt;/code&gt; on them. &lt;/li&gt;
&lt;li&gt;Go to &lt;code&gt;Java&lt;/code&gt; perspective. In &lt;code&gt;Package Explorer&lt;/code&gt; tab in triangle menu choose &lt;code&gt;Filters&lt;/code&gt; and deselect &lt;code&gt;External plug-ins project&lt;/code&gt;. &lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;Debug Configurations&lt;/code&gt; dialog and create new &lt;code&gt;Eclipse Application&lt;/code&gt; launch debug configuration. &lt;/li&gt;
&lt;li&gt;It's ready to start now. &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;All the classes should be under &lt;code&gt;External Plug-in Libraries/External Plug-ins&lt;/code&gt; in &lt;code&gt;Package Explorer&lt;/code&gt;. They are also available from the regular &lt;code&gt;Open Type (Ctrl+Shift+T)&lt;/code&gt; dialog window. &lt;/p&gt;
&lt;h2 id="where-to-start-debugging"&gt;Where to Start Debugging&lt;/h2&gt;
&lt;p&gt;Finding a place for the first breakpoint in an unfamiliar codebase may be tricky. If you have a stacktrace (&lt;a class="" href="/p/chromedevtools/wiki/HowToReportProblem"&gt;HowToReportProblem&lt;/a&gt; tells how to fetch one from an error message), everything should be quite straightforward. In other cases, there is probably no general instruction. We welcome you to ask in &lt;a class="" href="http://groups.google.com/group/chromedevtools-dev" rel="nofollow"&gt;discussion group&lt;/a&gt; if clueless. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sat, 25 Apr 2015 13:43:50 -0000</pubDate><guid>https://sourceforge.neta880442dc0dd52ec7d82231ab9d35115f7ee5da6</guid></item></channel></rss>