Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » java debug - breakpoint
java debug - breakpoint [message #485465] Fri, 11 September 2009 19:52 Go to next message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
In the java debugger, is there a way to set a breakpoint such that it
breaks at the first place it enters (ie, whatever method happens to get
called) in a class?
Re: java debug - breakpoint [message #485477 is a reply to message #485465] Fri, 11 September 2009 21:17 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 2406
Registered: July 2009
Senior Member
On 9/11/09 3:52 PM, Al wrote:
> In the java debugger, is there a way to set a breakpoint such that it
> breaks at the first place it enters (ie, whatever method happens to get
> called) in a class?

You can set a Class Load Breakpoint, which will stop when the class is
being lodaed. Right-click on a class in the Package Explorer, Project
Explorer, or Types view and choose "Toggle class load breakpoint"

Hope this helps,
Eric
Re: java debug - breakpoint [message #486049 is a reply to message #485477] Wed, 16 September 2009 05:27 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1049
Registered: July 2009
Senior Member

Hi Eric,

cool, I didn't know this. I added the information to my Eclipse
Debugging Tutorial
http://www.vogella.de/articles/EclipseDebugging/article.html

I also added your name to the change log ("Added toogle class load
breakpoint tip from Eric Rizzo"), I hope this is ok.

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter

Eric Rizzo wrote:
> On 9/11/09 3:52 PM, Al wrote:
>> In the java debugger, is there a way to set a breakpoint such that it
>> breaks at the first place it enters (ie, whatever method happens to get
>> called) in a class?
>
> You can set a Class Load Breakpoint, which will stop when the class is
> being lodaed. Right-click on a class in the Package Explorer, Project
> Explorer, or Types view and choose "Toggle class load breakpoint"
>
> Hope this helps,
> Eric
>
Re: java debug - breakpoint [message #486739 is a reply to message #485465] Fri, 18 September 2009 20:39 Go to previous message
Al Mising name is currently offline Al Mising nameFriend
Messages: 123
Registered: July 2009
Senior Member
Eric,

Thanks for the response.

I don't think this is what I am looking for. I'm at a debugging, stting at a breakpoint, the constructor or methods in the class have been previously called before this, and now I want to know the next method that is called in the class.

I guess this is not possible.

Another breakpoint question...is it possible to break when the value of a variable changes?

Thanks again.
Al
Previous Topic:How to run all External Tools (Ant buildfiles)
Next Topic:Failed To Load HTML From Bundle Using Browser
Goto Forum:
  


Current Time: Thu Dec 18 12:36:13 GMT 2014

Powered by FUDForum. Page generated in 0.05200 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software