Hi Josef,
On Tue, Jun 18, 2013 at 5:59 PM, jhaimerl <Josef.Haimerl(a)de-gmbh.com> wrote:
Hi Marius,
Could you explain me your setup for debugging the WYSIWYG editor?
What I'm doing it pretty basic (nothing integrated):
* I take a recent XWiki snapshot (jetty+hsqldb) from
http://maven.xwiki.org/snapshots/org/xwiki/enterprise/xwiki-enterprise-jett…
* unpack the zip and start XWiki
* I edit the code in Eclipse. I import only the code I'm working on
(say xwiki-platform-wysiwyg-client or xwiki-platform-wysiwyg-server)
* I prefer to build from console.
* For the server side I build xwiki-platform-wysiwyg-server, replace
the jar in WEB-INF/lib, restart the server in debug mode and debug
with Eclipse using Java Remote Debugging.
* For the client side I build xwiki-platform-wysiwyg-client (and
whatever dependencies I change, like xwiki-platform-gwt-user) and then
I build xwiki-platform-wysiwyg-war with -Pdev . This way only one
permutation is generated for each browser and the code is not
obfuscated.
** I replace (delete + copy) resources/js/xwiki/wysiwyg/xwe folder
with the one from the generated xwiki-platform-wysiwyg-war
** clear browser cache, reload, check with Firebug / Dev Tools what is
the loaded permutation
** edit the right permutation, find the right spot, put break points
('debugger') or change things
** debug in browser
In the past I used the GWT dev mode with the dedicated browser plugin
but now I mostly debug directly the generated JavaScript code.
I already took a look at
http://dev.xwiki.org/xwiki/bin/view/Community/DebugXEWithEclipse, did you
already find a way to support the new wysiwyg?
I don't use it, but you should be able to automate some of the steps I
listed above.
Hope this helps,
Marius
Are there any other documents available I missed out?
Regards
Josef
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Fwd-Adding-a-customer-plugin-to-the-wysiw…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs