JavaRebel and IntelliJ IDEA
October 11th, 2007 by Toomas RömerEclipse IDE was used in the JavaRebel installation and demo screencast. We have got requests on how to integrate JavaRebel with IntelliJ IDEA. Of course JavaRebel is IDE independent and it all comes down to the users choice. In this quick tutorial we will outline the settings that you should enable to take the most out of JavaRebel & Intellij IDEA.We will be using the latest stable version 6.0.6.
Currently it is not possible to debug applications from IntelliJ Idea that are using JavaRebel. The issue has been reported to JetBrains.. To debug applications running under JavaRebel using IntelliJ IDEA use the special plugin. It can be downloaded from the IntelliJ Plugin page or from the IntelliJ IDEA plugin manager.
Use the following tips increase your productivity.
- Develop in exploded mode
- Make sure that you don’t package modules as war/jar files
- Set the output directory to the respected WEB-INF/classes
- This is done via Module Settings -> Output and JavaDoc -> Output path
- Turn off application deployment
- Settings -> Project Settings -> Compiler -> Deploy web applications to server after compilation
- Ease the compilation process
- IDEA saves files when you compile them.
- Make sure all dependent files are also compiled.
- Settings -> Project Setting -> Compiler -> Honor dependencies on “Compile” command
- Start using the default compile shortcut Ctrl-Shift-f9 or map it to ctrl-s.
Opening Module Settings

Setting Output Paths

Compiler Settings













November 21st, 2007 at 5:31 pm
[…] If you don’t know how to setup IDEA and JavaRebel read the JavaRebel and IntelliJ IDEA tips. […]
June 12th, 2008 at 3:26 pm
[…] 今天下载了JavaRebel 1.2-M1试用,确实非常地强大啦,支持unexploded development,不管什么应用都可以搞定。现在基本不用重新启动Tomcat,节省了不少时间。如果使用IntelliJ IDEA,可以参考一下:http://www.zeroturnaround.com/blog/javarebel-and-intellij-idea-tips/ […]
August 4th, 2008 at 1:05 am
Is this still true??
“Currently it is not possible to debug applications from IntelliJ Idea that are using JavaRebel. The issue has been reported to JetBrains.”
August 4th, 2008 at 7:37 am
Not any more. We have released a plugin that takes care of setting breakpoints. Here is the link http://plugins.intellij.net/plugin/?id=1699 or you can install it via the plugin manager from inside IntelliJ.
August 13th, 2008 at 5:04 pm
Hi all!
I installed the JavaRebel and the plugin on IntelliJ and when I start in debug modus it does not stop at the breakpoints. The version I am using is 7.0.3 of IntelliJ.
Any comments on this?
August 13th, 2008 at 5:56 pm
Hi
Could you confirm that:
*) You’ve restarted IDE after installation
*) Plugin is enabled
and the problem persists.
September 18th, 2008 at 1:36 am
Yes,
I have the same problem as the last user.
Just tried the plugin and now instead of crashing (without the plugin it freezes the IDE), it does not stop on breakpoints.
September 18th, 2008 at 12:19 pm
Could you open up an issue in the Forum (http://www.zeroturnaround.com/forum/) with version details and instructions on how to reproduce?