diff --git a/Documentation/dev-eclipse.txt b/Documentation/dev-eclipse.txt index b3525a12c3..7e1ca10c31 100644 --- a/Documentation/dev-eclipse.txt +++ b/Documentation/dev-eclipse.txt @@ -79,6 +79,26 @@ as a bookmarklet). recompiling. * To reflect your changes in the debug session, click `Dev Mode On` then `Compile`. + +=== Running GWT Debug Mode for Gerrit plugins + +A Gerrit plugin can expose GWT module and its implementation can be inspected +in the SDM debug session. + +`codeserver` needs two additional inputs to expose the plugin module in the SDM +debug session: the module name and the source folder location. For example the +module name and source folder of `cookbook-plugin` should be added in the local +copy of the `gerrit_gwt_debug` configuration: + +---- + com.googlesource.gerrit.plugins.cookbook.HelloForm \ + -src ${resource_loc:/gerrit}/plugins/cookbook-plugin/src/main/java \ + -- --console-log [...] +---- + +After doing that, both the Gerrit core and plugin GWT modules can be activated +during SDM (debug session)[http://imgur.com/HFXZ5No]. + GERRIT ------ Part of link:index.html[Gerrit Code Review] diff --git a/tools/eclipse/gerrit_gwt_debug.launch b/tools/eclipse/gerrit_gwt_debug.launch index 35332111ba..c3c58ffcf1 100644 --- a/tools/eclipse/gerrit_gwt_debug.launch +++ b/tools/eclipse/gerrit_gwt_debug.launch @@ -16,7 +16,7 @@ - +