Andreas Lecerof Vor 7 Jahren Thank you for sharing!I'm also running IntelliJ and not running Tomcat within IntelliJ.>The downside to this approach is that there is zero support for hot deploy; if >you change code you have to do a build and deploy it for debugging to work.JRebel will do the work for you.For debugging, I changed my setenv.sh (in tomcat/bin), and added the following line:DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000"then DEBUG_OPTS is added to JAVA_OPTS:JAVA_OPTS="$JAVA_OPTS $DEBUG_OPTS ... etc. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David H Nebinger Andreas Lecerof Vor 7 Jahren I haven't tried jrebel against LR7 yet. Have you been able to change code, jsp, etc in the module layer and get it to work? If so, I'll have to give it a shot...I went with the "jpda start" option so I didn't have to put the debug settings in setenv.sh. I want to be able to switch debug on and off w/o having to edit setenv.sh. Using the already supported "jpda start" option was just the ticket. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David H Nebinger Andreas Lecerof Vor 7 Jahren I haven't tried jrebel against LR7 yet. Have you been able to change code, jsp, etc in the module layer and get it to work? If so, I'll have to give it a shot...I went with the "jpda start" option so I didn't have to put the debug settings in setenv.sh. I want to be able to switch debug on and off w/o having to edit setenv.sh. Using the already supported "jpda start" option was just the ticket. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Johnathan Burbea Vor 7 Jahren please show us the embedded / integrated liferay runtime tomcat JVM with intellij; do you know that only intellij can do integrated tomcat running and debugging on a separate host, not just local? key differentiator between eclipse and intellij (being the superior IDE) Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Jack Bakker Vor 7 Jahren I prefer IntelliJ configs for run/debug of Tomcat with or without JRebel. No idea how JRebel will be used with Liferay 7 OSGi jars. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Jack Bakker Vor 5 Jahren Ok, I gave in to David's wisdom. I now follow similar to what David presents here where I run tomcat and then debug from IntelliJ. This approach allows my dev tomcat to run in a more similar way to non-dev environments like staging and prod. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David H Nebinger Jack Bakker Vor 5 Jahren I wouldn't call it wisdom, really. It is really more of a reflection of having all to often given something that worked just fine in a developer rig only to find it fail on me for one reason or another when deployed to test.So now I always run my local dev environment as a clone of how it is in test; separate elastic, manual copying of artifacts to the Liferay deploy folder, ...I know it is the old school way of doing things, and it does cost me some developer time. But my artifacts deploy just as I expect in test and higher lanes, so to me it is a price worth paying. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David H Nebinger Jack Bakker Vor 5 Jahren I wouldn't call it wisdom, really. It is really more of a reflection of having all to often given something that worked just fine in a developer rig only to find it fail on me for one reason or another when deployed to test.So now I always run my local dev environment as a clone of how it is in test; separate elastic, manual copying of artifacts to the Liferay deploy folder, ...I know it is the old school way of doing things, and it does cost me some developer time. But my artifacts deploy just as I expect in test and higher lanes, so to me it is a price worth paying. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Jack Bakker Vor 5 Jahren how would I add in debugging of marketplace jasperreports-web ? is EE only and source is available Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen David H Nebinger Jack Bakker Vor 5 Jahren Good question. Not sure I know. Intellij does have a decompiler for when source is not available, but I don't know how you would set your original breakpoints, for example. Surely it must be possible, of course, but it would take some investigation to find out. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
David H Nebinger Jack Bakker Vor 5 Jahren Good question. Not sure I know. Intellij does have a decompiler for when source is not available, but I don't know how you would set your original breakpoints, for example. Surely it must be possible, of course, but it would take some investigation to find out. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Vitaliy Koshelenko Vor 5 Jahren Thanks for sharing. Is there a way to debug JSPs inside OSGi modules in Liferay 7? https://community.liferay.com/forums/-/message_boards/message/112440770 Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen