Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Debugging in Eclipse as a whole

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to debug my application from the beginning. As an when the server is up and the url is hit it will start debugging. how can I do that?

I do not want to attach Remote debugging because there I have to attach a particular file for debugging which I may not know from where to start.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set breakpoints at the URL handler entry points?
 
Kousik Majumder
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Can you tell me what do you mean by URL handler entry points?
 
Saloon Keeper
Posts: 21975
150
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All Eclipse debugging is remote debugging. The actual debugger is built into the runtime JVM. Eclipse just provides the GUI to talk to it. And, when you're not explicitly selecting remote debugging, it launches a JVM with remote debugging automatically enabled.

For web applications, normally you set breakpoints on the application's URL handling code. There's not much benefit for most of us to breakpointing the internal URL handlers of web servers. or even the framework dispatcher servlets such as the Struts ActionServlet.

There's no central command to set a breakpoint whenever ANY URL is handled, because J2EE derives most of its functionality from servlets, and each servlet does its own URL handling.
 
Bring out your dead! Or a tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic