Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Java EE 8 Development with Eclipse

You're reading from   Java EE 8 Development with Eclipse Develop, test, and troubleshoot Java Enterprise applications rapidly with Eclipse

Arrow left icon
Product type Paperback
Published in Jun 2018
Publisher
ISBN-13 9781788833776
Length 596 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (20) Chapters Close

Title Page
Copyright and Credits
Dedication
Packt Upsell
1. Introducing JEE and Eclipse FREE CHAPTER 2. Creating a Simple JEE Web Application 3. Source Control Management in Eclipse 4. Creating JEE Database Applications 5. Unit Testing 6. Debugging the JEE Application 7. Creating JEE Applications with EJB 8. Creating Web Applications with Spring MVC 9. Creating Web Services 10. Asynchronous Programming with JMS 11. Java CPU Profiling and Memory Tracking 12. Microservices 13. Deploying JEE Applications in the Cloud 14. Securing JEE Applications 1. Other Books You May Enjoy Index

Debugging a remote Java application


You may have debugged standalone Java applications from Eclipse. You set breakpoints in the code, run the application in the Debug mode from Eclipse, and then debug the application by stepping through the code. Debugging remote Java applications is a bit different, particularly when it comes to how you launch the debugger. In the case of local application, the debugger launches the application. In the case of remote application, it is already launched and you need to connect the debugger to it. In general, if you want to allow remote debugging for the application, you need to run the application using the following parameters:

-Xdebug -Xrunjdwp:transport=dt_socket,address=9001,server=y,suspend=n
  • Xdebug enables debugging
  • Xrunjdwp runs the debugger implementation of the Java Debug Wire Protocol (JDWP)

Instead of -Xdebug -Xrunjdwp, you can also use -agentlib:jdwp for JDK 1.5 and above, for example:

-agentlib:jdwp=transport= dt_socket,address=9001,server=y,suspend...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images