Re: Setting breakpoint on the end of the method in Eclipse
- From: dt <daytues@xxxxxxxxx>
- Date: 8 May 2007 07:43:59 -0700
There IS something at the closing brace of a method that can completeI suspected so, but I really don't know how JVM works.
normally. The JVM does not magically intuit the need to pop a stack
frame and jump to the caller's code. It executes a return instruction.
The fact that Eclipse does implement break on method exit proves that itAlthough this is probably not true for the end of the while loops. As
can do so. The issue is not one of executable program structure or
virtual machine capability, but of user interface.
far as I recall, they are implemented something as:
1. condition check
2. if failed jump to the first instruction after the body of the loop
(i.e. 5)
3. body of the loop
4. jump to beginning of the loop (i.e. 1)
5. first instruction after the body of the loop
Again, I don't know if this is true for JVM. If, however, true, this
would probably involve adding some code if implemented for all loop
levels (i.e. with possibility to stop on fall through any of the
loops). Although, as I said, this is probably not implemented in other
IDEs.
.
- Follow-Ups:
- References:
- Prev by Date: CBT java tutorial for Beginners
- Next by Date: Re: OT: When did contract conditions become enforcable in a court of law? Was Re: Forming HTTP request from java code
- Previous by thread: Re: Setting breakpoint on the end of the method in Eclipse
- Next by thread: Re: Setting breakpoint on the end of the method in Eclipse
- Index(es):
Relevant Pages
|