Andreas Lecerof 7年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル David H Nebinger Andreas Lecerof 7年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル
David H Nebinger Andreas Lecerof 7年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル
Johnathan Burbea 7年 前 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) 投票するためにはログインが必要です。 次として送信する: キャンセル
Jack Bakker 7年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル
Jack Bakker 6年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル David H Nebinger Jack Bakker 6年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル
David H Nebinger Jack Bakker 6年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル
Jack Bakker 6年 前 how would I add in debugging of marketplace jasperreports-web ? is EE only and source is available 投票するためにはログインが必要です。 次として送信する: キャンセル David H Nebinger Jack Bakker 6年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル
David H Nebinger Jack Bakker 6年 前 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. 投票するためにはログインが必要です。 次として送信する: キャンセル
Vitaliy Koshelenko 5年 前 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 投票するためにはログインが必要です。 次として送信する: キャンセル