This is about : Debugging code in IntelliJ for OpenMRS Jetty
And this article : Debugging code in IntelliJ for OpenMRS Jetty
Debugging code in IntelliJ for OpenMRS Jetty
Yesterday, while working on OpenMRS I needed to debug some Java code. I could not easily find steps for debugging OpenMRS with IntelliJ on Google, so I decided to write down my findings.I used IntelliJ's Remote JVM option to connect to OpenMRS Jetty server.
Step1: Configure Jetty to open a remote debugging port:
One needs to set the following in MAVEN_OPTS so that Jetty opens a remote debugging port for IntelliJ to connect to:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MAVEN_OPTS="-Xmx1024m -Xms1024m -XX:PermSize=256m -XX:MaxPermSize=512m -Xdebug -Xrunjdwp:transport=dt_socket,address=51696,suspend=n,server=y" |
I updated the MAVEN_OPTS in my home directory's .zshrc file (since i use ZSH shell on Mac). You may need to set the MAVEN_OPTS variable appropriately for your environment (Windows/Linux/etc) so that it is correctly set, before starting Jetty on command line.
The value "51696" that I have mentioned above is the port where I want the debugger to run. The memory options have been set because Jetty gives an OutOfMemoryException with OpenMRS if the memory is insufficient (and by default, it seems to be insufficient - so you are better off setting the memory values too).
Now, start Jetty normally using "mvn jetty:run". You will notice the following line being printed by Jetty to indicate that debug port has been opened.
Listening for transport dt_socket at address: 51696
Step2: Configure IntelliJ to connect to the remote debugging port of Jetty:
In IntelliJ, go to "Run" menu, and select "Edit Configurations". Select the "Defaults" option on the left menu, and click on the "+" on the Right side, to create a new configuration. In that Select "Remote" option, and enter options as "localhost" and port as "51696" (same as the port number in step 1 above). Put "Name" as anything you like. I have set it as "OpenMRS Jetty".
![]() |
OpenMRS Jetty Remote Debugger in IntelliJ IDE |
That's it! Now you can debug using this "OpenMRS Jetty" configuration. On clicking "Debug" you should see the debugger connected to Jetty, and breakpoints will start working.
Note: If you want to perform Debugging on Eclipse, then basic process would be the same. Step1: No change. Step2: In Eclipse choose Remote JVM Debugging option (similar to IntelliJ).
There are other ways of debugging OpenMRS too, especially if you run Jetty from inside the IDE. But, for me, this method was simpler.
Articles Debugging code in IntelliJ for OpenMRS Jetty finished we discussed
A few of our information about the Debugging code in IntelliJ for OpenMRS Jetty, I hope you can exploit carefully
No've You've finished reading an article on Debugging code in IntelliJ for OpenMRS Jetty and many articles about modern home in our blog this, please read it. and url link of this article is http://liveeconcerts.blogspot.com/2012/12/debugging-code-in-intellij-for-openmrs.html Hopefully discussion articles on provide more knowledge about the world of tech gadgets.
Tag :
ReplyDeleteThank you for sharing this blog, It is an amazing blog, I am really impressed by your blog, It’s really useful norton.com/setup
www.norton.com/setup
ReplyDeleteThanks for sharing with us your wonderful knowledge website keep it up
xanax for sale
I found this is an informative blog and also very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this blog
ReplyDeletebuy ambien online overnight
Thanks for sharing your knowledge. The content in this article is really informative.
ReplyDeleteorder Xanax online USA teams helps you. If you have any problems related to this topic than visit our page.
This is a very insightful, helpful, and knowledgeable blog, in my opinion. I'd like to express my gratitude for the time and effort you put into writing this blog.
ReplyDeleteThanks for sharing your knowledge. The content in this article is really informative.
ReplyDeletecheap cialis online
Thanks for sharing your knowledge. The content in this article is really informative.
ReplyDeletebuy Lortab online
I found this is an informative blog and also very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this blog Top 3 Sixes in Gully Cricket
ReplyDeleteNeed 12 runs in 2 balls
Thanks for sharing your knowledge. The content in this article is really informative. and you can buy soma 500mg online our teams help you. If you have any problems related to this topic than visit our page.
ReplyDeletehttps://www.healthcureshop.com/product/soma-500mg/
https://www.healthcureshop.com/soma/
This comment has been removed by the author.
ReplyDeleteInsomnia is a sleep condition in which you consider it. Buy ambien 10mg online impossible to fall asleep. It may be short-term or long-term (acute) or chronic. Sleeplessness is chronic if it lasts three nights or longer per week.
ReplyDeleteBuy Ambien Online Get rid of Sleepless nights with Ambien.Buy Ambien 5MG Online It may be short-term or long-term (acute) or chronic. Sleeplessness is chronic if it lasts three nights or longer per week, at least. Decide to buy Ambien online for benefits.
ReplyDeleteWe provide you the best services to help you Buy Soma 500mg online with ease while sitting in a comfortable and private space of your home or workplace.Soma is given to patients for treating muscle pain and discomfort
ReplyDeleteAs age increases, there are several interests in which a person starts losing, and some of them trigger their beloved ones Order Best Medications Being caring and loving your partner is something that doesn't see any age Buy viagra 100mg online.
ReplyDeleteNot all the roads are clear Buy Zopiclone 7.5mg and at the same time, not all the bad roads last forever. In this journey of life, we often come across problems that shatter every bit of ours and make us feel alone. The truth is that you do not need anyone to tap on your back and appreciate you for your intelligence.
ReplyDeleteBuy Tramadol 100mg over the counter, make sure that you first consult a doctor. This medicine is only effective in the most severe cases of arthritis and muscle spasms.
ReplyDeleteYou can buy Clonazepam 2mg online, but the use of Clonazepam should be avoided for people with narrow-angle glaucoma or the ones suffering from severe or acute liver ailments. People, who have experienced allergic reactions to using Clonazepam in the past, should also not use the drug.
ReplyDeleteLevitra is no effective drug. Befor use you have to take some precautions. You can Buy Levitra 10mg according to your need, but concerned a things tell your healthcare professional if you have any other types of allergies.
ReplyDeleteLevitra is no effective drug. Befor use you have to take some precautions. You can Buy levitra 20mg onlin USA onlin USA. Avoid drinking grapefruit juice after consuming this tablet.
ReplyDeleteModafinil reduces the marked drowsiness caused by narcolepsy and other sleep disorders, like apnea Buy Modafinil online It also can assist you awaken during work hours if your work schedule disrupts your standard sleep patterns
ReplyDeleteHydrocodone is one of the most trusted online pharmacies in the USA.Buy Hydrocodone online and It offers only high quality and best efficient pharmacy products
ReplyDeleteHydrocodone is one of the most trusted online pharmacies in the USA.Buy Hydrocodone 10 500mg online usage of this medicine furthermore includes alcohol withdrawal
ReplyDelete