Thiago Leão Moreira 13年 前 Hey Ray, I use to work in a different and IMO more efficient way. I start my Tomcat in a remote debug mode, just call from command line the command: "catalina.sh jpda run" . Then you can connect your Eclipse to Liferay using the "Debug Configurations > Remote Java Application" menu. By default the host and port points to the correct place. You can also disconnect as you wish and continue the normal testing. Give a try and let me know.um abraço! 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Thiago Leão Moreira 13年 前 I started this way long ago. I dropped it because it caused me to have to editing the tomcat configurations all the time, setting different VM settings, etc. With the method I use, I can duplicate the run config, and change only a few settins, such as adding JMX, or particular GC settings, etc., all without touching the files in the bundle. I can even switch to different installed JVMs configured in Eclipse without having to edit more config, or change the system PATHs or settings. 投票するためにはログインが必要です。 次として送信する: キャンセル Denis Signoretto Ray Augé 13年 前 @Ray Can you explain step by step your method?Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Besides the configuration above, can you explain a little what "method" you'd like me to clarify? I'm not quite sure what you're asking, but I would like to give a good answer. 投票するためにはログインが必要です。 次として送信する: キャンセル Denis Signoretto Ray Augé 13年 前 @RayHi ray, you are right I was't really clear. I'm referring to your sentence "With the method I use". I 'm guessing it's the same of Thiago.Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Got it! I simply meant "the method that I described above in the blog post". 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Thiago Leão Moreira 13年 前 I started this way long ago. I dropped it because it caused me to have to editing the tomcat configurations all the time, setting different VM settings, etc. With the method I use, I can duplicate the run config, and change only a few settins, such as adding JMX, or particular GC settings, etc., all without touching the files in the bundle. I can even switch to different installed JVMs configured in Eclipse without having to edit more config, or change the system PATHs or settings. 投票するためにはログインが必要です。 次として送信する: キャンセル Denis Signoretto Ray Augé 13年 前 @Ray Can you explain step by step your method?Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Besides the configuration above, can you explain a little what "method" you'd like me to clarify? I'm not quite sure what you're asking, but I would like to give a good answer. 投票するためにはログインが必要です。 次として送信する: キャンセル Denis Signoretto Ray Augé 13年 前 @RayHi ray, you are right I was't really clear. I'm referring to your sentence "With the method I use". I 'm guessing it's the same of Thiago.Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Got it! I simply meant "the method that I described above in the blog post". 投票するためにはログインが必要です。 次として送信する: キャンセル
Denis Signoretto Ray Augé 13年 前 @Ray Can you explain step by step your method?Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Besides the configuration above, can you explain a little what "method" you'd like me to clarify? I'm not quite sure what you're asking, but I would like to give a good answer. 投票するためにはログインが必要です。 次として送信する: キャンセル Denis Signoretto Ray Augé 13年 前 @RayHi ray, you are right I was't really clear. I'm referring to your sentence "With the method I use". I 'm guessing it's the same of Thiago.Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Got it! I simply meant "the method that I described above in the blog post". 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Denis Signoretto 13年 前 Besides the configuration above, can you explain a little what "method" you'd like me to clarify? I'm not quite sure what you're asking, but I would like to give a good answer. 投票するためにはログインが必要です。 次として送信する: キャンセル Denis Signoretto Ray Augé 13年 前 @RayHi ray, you are right I was't really clear. I'm referring to your sentence "With the method I use". I 'm guessing it's the same of Thiago.Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Got it! I simply meant "the method that I described above in the blog post". 投票するためにはログインが必要です。 次として送信する: キャンセル
Denis Signoretto Ray Augé 13年 前 @RayHi ray, you are right I was't really clear. I'm referring to your sentence "With the method I use". I 'm guessing it's the same of Thiago.Thanks,Denis. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Denis Signoretto 13年 前 Got it! I simply meant "the method that I described above in the blog post". 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Denis Signoretto 13年 前 Got it! I simply meant "the method that I described above in the blog post". 投票するためにはログインが必要です。 次として送信する: キャンセル
Vilmos Kozma 13年 前 Hi Ray!It's good to see this stuff written down. However, for the whole picture it would be nice to hear about hot code replacement. When I debug my code and find something to be fixed I like not having to run any build script to test the new code. So is the above description solves this issue or we need to do some extra work to get the JVM to hot code replace? 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Vilmos Kozma 13年 前 You can do hot code replacement using this technique. There is of course the limitation of the (Sun) JVM, which does not allow new|changes to the class's public signature.Oh, and the project does have to be listed in the sources tab of the run configuration. 投票するためにはログインが必要です。 次として送信する: キャンセル Corné Aussems Ray Augé 13年 前 How should i hot-code replace classes? I know there is deploy-fast for jsps and deploy.properties. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Corné Aussems 13年 前 Eclipse should do it automatically. Of course you can't add new methods, but changes should be pushed automatically as soon as you save, while in debug.Just make sure to include their path to the jsp java source in the run configuration (that is in the "work" folder, [tc]/work/Catalina/localhost/*/). 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 13年 前 Oh, as I learned the hard way last week, jsp pre-compile breaks the ability to debug them, so don't do that. They have to be compiled inside the debugged JVM. I even tried pre-compiling them with debug flags added, but it still didn't work. Anyone with insight in that please let me know. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Vilmos Kozma 13年 前 You can do hot code replacement using this technique. There is of course the limitation of the (Sun) JVM, which does not allow new|changes to the class's public signature.Oh, and the project does have to be listed in the sources tab of the run configuration. 投票するためにはログインが必要です。 次として送信する: キャンセル Corné Aussems Ray Augé 13年 前 How should i hot-code replace classes? I know there is deploy-fast for jsps and deploy.properties. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Corné Aussems 13年 前 Eclipse should do it automatically. Of course you can't add new methods, but changes should be pushed automatically as soon as you save, while in debug.Just make sure to include their path to the jsp java source in the run configuration (that is in the "work" folder, [tc]/work/Catalina/localhost/*/). 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 13年 前 Oh, as I learned the hard way last week, jsp pre-compile breaks the ability to debug them, so don't do that. They have to be compiled inside the debugged JVM. I even tried pre-compiling them with debug flags added, but it still didn't work. Anyone with insight in that please let me know. 投票するためにはログインが必要です。 次として送信する: キャンセル
Corné Aussems Ray Augé 13年 前 How should i hot-code replace classes? I know there is deploy-fast for jsps and deploy.properties. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Corné Aussems 13年 前 Eclipse should do it automatically. Of course you can't add new methods, but changes should be pushed automatically as soon as you save, while in debug.Just make sure to include their path to the jsp java source in the run configuration (that is in the "work" folder, [tc]/work/Catalina/localhost/*/). 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 13年 前 Oh, as I learned the hard way last week, jsp pre-compile breaks the ability to debug them, so don't do that. They have to be compiled inside the debugged JVM. I even tried pre-compiling them with debug flags added, but it still didn't work. Anyone with insight in that please let me know. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Corné Aussems 13年 前 Eclipse should do it automatically. Of course you can't add new methods, but changes should be pushed automatically as soon as you save, while in debug.Just make sure to include their path to the jsp java source in the run configuration (that is in the "work" folder, [tc]/work/Catalina/localhost/*/). 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 13年 前 Oh, as I learned the hard way last week, jsp pre-compile breaks the ability to debug them, so don't do that. They have to be compiled inside the debugged JVM. I even tried pre-compiling them with debug flags added, but it still didn't work. Anyone with insight in that please let me know. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Ray Augé 13年 前 Oh, as I learned the hard way last week, jsp pre-compile breaks the ability to debug them, so don't do that. They have to be compiled inside the debugged JVM. I even tried pre-compiling them with debug flags added, but it still didn't work. Anyone with insight in that please let me know. 投票するためにはログインが必要です。 次として送信する: キャンセル
Daniel Niklas 13年 前 Hi,you can combine your ideas. Extend VM arguments to-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=nSo you get the advantages metioned by Ray and you can use "Remote Debugging" as Thiago has described. Daniel :-) 投票するためにはログインが必要です。 次として送信する: キャンセル
Its Me 13年 前 Since I can't see my portlet on the website, it isn't deployed to the server? How can i do this in eclipse? 投票するためにはログインが必要です。 次として送信する: キャンセル
Corné Aussems 13年 前 I just found out by trial that when in the Servers View you add a Tomcat Server or Liferay Server (IDE/Studio) and point it to your newly build bundle and just under Open launch configuration >> Source >> Add : Java Project >> The portal project. Start in debug and voila.. 投票するためにはログインが必要です。 次として送信する: キャンセル Michel Wicky Corné Aussems 12年 前 Just testing and got an error using helios SR2Variable references non-exitent resource: ${workspace_loc:portal} 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Michel Wicky 12年 前 You still seeing this? I wonder if eclipse changed the default variable names! 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 12年 前 I updated it to just say ${workspace_loc:<NAME_OF_YOUR_ECLIPSE_PROJECT>}Replace that token with whatever is the name of your eclipse project. OR just replace that entire variable with the absolute path to your project. 投票するためにはログインが必要です。 次として送信する: キャンセル
Michel Wicky Corné Aussems 12年 前 Just testing and got an error using helios SR2Variable references non-exitent resource: ${workspace_loc:portal} 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Michel Wicky 12年 前 You still seeing this? I wonder if eclipse changed the default variable names! 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 12年 前 I updated it to just say ${workspace_loc:<NAME_OF_YOUR_ECLIPSE_PROJECT>}Replace that token with whatever is the name of your eclipse project. OR just replace that entire variable with the absolute path to your project. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Michel Wicky 12年 前 You still seeing this? I wonder if eclipse changed the default variable names! 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Ray Augé 12年 前 I updated it to just say ${workspace_loc:<NAME_OF_YOUR_ECLIPSE_PROJECT>}Replace that token with whatever is the name of your eclipse project. OR just replace that entire variable with the absolute path to your project. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Ray Augé 12年 前 I updated it to just say ${workspace_loc:<NAME_OF_YOUR_ECLIPSE_PROJECT>}Replace that token with whatever is the name of your eclipse project. OR just replace that entire variable with the absolute path to your project. 投票するためにはログインが必要です。 次として送信する: キャンセル
babu reddy 12年 前 hi sir. pls tel me how to configure liferay with Jboss to eclips 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé babu reddy 12年 前 - 編集済み I would do basically the same thing as above and get the start command used by jboss, and setup the run config something like this:http://i.imgur.com/Gjqyv.pnghttp://i.imgur.com/joTTR.pnghttp://i.imgur.com/m8mY5.pnghttp://i.imgur.com/6wZTX.pngNote the ${JBOSS_510_DEPLOY} Eclipse variable points to the JBoss install location. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé babu reddy 12年 前 - 編集済み I would do basically the same thing as above and get the start command used by jboss, and setup the run config something like this:http://i.imgur.com/Gjqyv.pnghttp://i.imgur.com/joTTR.pnghttp://i.imgur.com/m8mY5.pnghttp://i.imgur.com/6wZTX.pngNote the ${JBOSS_510_DEPLOY} Eclipse variable points to the JBoss install location. 投票するためにはログインが必要です。 次として送信する: キャンセル
Linus Sphinx 12年 前 Creating my project of, 'portal', with the, "Create from ant build file", option, all works, see the app, create the run configuration and fire it up just fine but I don't see any source to step through, just all the jars. How do you create your project in eclipse? 投票するためにはログインが必要です。 次として送信する: キャンセル Mary Mizrahi Linus Sphinx 11年 前 Does this method of debugging in Eclipse no longer work with 6.1 and IDE 1.52?For some reason I no longer get output to the console from my portlets and break points are ignored. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Mary Mizrahi 11年 前 I have no idea with respect to the IDE, but I still use this same technique with 6.1 and trunk. Have you included the plugin projects in the sources list of the debug configuration? 投票するためにはログインが必要です。 次として送信する: キャンセル Jacques Traore Ray Augé 11年 前 You are a genius !!!!Thx 投票するためにはログインが必要です。 次として送信する: キャンセル
Mary Mizrahi Linus Sphinx 11年 前 Does this method of debugging in Eclipse no longer work with 6.1 and IDE 1.52?For some reason I no longer get output to the console from my portlets and break points are ignored. 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé Mary Mizrahi 11年 前 I have no idea with respect to the IDE, but I still use this same technique with 6.1 and trunk. Have you included the plugin projects in the sources list of the debug configuration? 投票するためにはログインが必要です。 次として送信する: キャンセル Jacques Traore Ray Augé 11年 前 You are a genius !!!!Thx 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé Mary Mizrahi 11年 前 I have no idea with respect to the IDE, but I still use this same technique with 6.1 and trunk. Have you included the plugin projects in the sources list of the debug configuration? 投票するためにはログインが必要です。 次として送信する: キャンセル Jacques Traore Ray Augé 11年 前 You are a genius !!!!Thx 投票するためにはログインが必要です。 次として送信する: キャンセル
hiep lq 10年 前 this method is debug for portlet, theme, ext, hook project?when i use liferay. I use web-content and cms script. my code find service is return nothing. i want debug into serviceLocator.findService.howto setup enviroment for debug portal code? 投票するためにはログインが必要です。 次として送信する: キャンセル Ray Augé hiep lq 10年 前 This method works for the portal, but you need the source to make it useful. 投票するためにはログインが必要です。 次として送信する: キャンセル
Ray Augé hiep lq 10年 前 This method works for the portal, but you need the source to make it useful. 投票するためにはログインが必要です。 次として送信する: キャンセル