Newbie Eclipse Hot Swap question
1 posts in topic
Flat View  Flat View

Posted By:   lyte_saber
Posted On:   Sunday, February 26, 2006 05:19 PM

In Eclipse is it possible to

- debug some java source code

- realise that if one of your values was slightly different you would have gone down the right path

- step backwards to point before the value is assigned

- change the value in memory and then step forwards replaying the stack they way you would like?

I haven't been able to find a good instruction set for this.


Re: Newbie Eclipse Hot Swap question

Posted By:   Eric_Rizzo  
Posted On:   Wednesday, March 1, 2006 09:31 PM

It ma be possible, depending on what kind of variable you want to change the value of. The first thing to learn about is the "Drop to frame" feature of the debugger. It is available by right-clicking on a frame in the stack in the Debug view. What it does it rolls execution back to the beginning of that stack frame. See the Eclipse Help for all the details.

When you do that, you may be able to change variable data by using the Display view in teh debug perspective. Taht view is essentially a little Scrapbook where you can execute arbitary blocks of code within the context of the selected stack frame.

About | Sitemap | Contact