Hi Tullio,


The simplest way will be to run tomcat from within your IDE.



Assuming you use Eclipse:



1.       Use a recent version of Eclipse.

2.       Install the Eclipse WTP (web tools platform) if you don't already have 
it.

3.       Configure your project in eclipse, get your project compiling so that 
you can export your custom module's JAR from eclipse.

4.       Once that is all working, you can now set up eclipse to enable 
debugging for your code.

5.       Download Magnolia and unpack it somewhere.

6.       Install a tomcat-server in Eclipse (Preferences --> Server --> Runtime 
Environments).

7.       Choose the tomcat folder from magnolia installation you just unpacked.

8.       Save it.

9.       Open the Servers View.

10.   Double-Click the Server you defined to change the settings.

11.   Change the setting: Server Location to "Use Tomcat Installation"

12.   Copy your JAR into magnolia

13.   Start the server in Debug Mode

14.   Set Breakpoints in your code

15.   Debug!



With a bit more work you can probably get hot-code-replace working, you can add 
source-paths for all the magnolia code, etc...



Regards from Vienna,



Richard







-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Tullio Bettinazzi (via Magnolia Forums)
Gesendet: Freitag, 01. Februar 2013 16:21
An: Magnolia User List
Betreff: [magnolia-user] How to debug a new module.



I'm working on a new custom module and I've the following difficulty, I didn't 
find a way to debug it.

In order to test it I need to create a jar, move it under magnolia and then 
execute it.

It's a quite long rountrip and I wasn't able to debug it.

Could someune usggest a way ?

Tks



--

Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=41ff8790-9429-4ab7-a768-bd47c3d90f13





----------------------------------------------------------------

For list details, see http://www.magnolia-cms.com/community/mailing-lists.html

Alternatively, use our forums: http://forum.magnolia-cms.com/

To unsubscribe, E-mail to: 
<[email protected]<mailto:[email protected]>>

----------------------------------------------------------------






----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to