change value during debug

Hi,

I used Intellij for some time now. Last week, one of friends told me that he used Eclipse and it can change the variable value during the debug session, even during remote debug. I wonder if IDEA can do this? I don't see any menu or configurion in Intellij 4.5

Thanks

5 comments
Comment actions Permalink

Just right-click on the variable to change (in debugger window) and
select 'Set Value...' from the popup menu.

java8964 wrote:

Hi,

I used Intellij for some time now. Last week, one of friends told me that he used Eclipse and it can change the variable value during the debug session, even during remote debug. I wonder if IDEA can do this? I don't see any menu or configurion in Intellij 4.5

Thanks

0
Comment actions Permalink

OK. I already found out the answer in "set the value" menu. But I have another question like this:

From the Help for the Eclipse Platform - "When stepping through your code, you might occasionally step too far, or step over a line you meant to step into. Rather than restarting your debug session, you can use the Drop to Frame action to quickly go back to the beginning of a method. Select the stack frame corresponding to the Java method you wish to restart, and select Drop to Frame from Debug view toolbar or the stack frame's context menu. The current instruction pointer will be reset to the first executable statement in the method. This works for non-top stack frames as well.

Can I do this in IDEA? Thanks

0
Comment actions Permalink

Yes, that's called 'Pop Frame' in IDEA.

java8964 wrote:

OK. I already found out the answer in "set the value" menu. But I have another question like this:

From the Help for the Eclipse Platform - "When stepping through your code, you might occasionally step too far, or step over a line you meant to step into. Rather than restarting your debug session, you can use the Drop to Frame action to quickly go back to the beginning of a method. Select the stack frame corresponding to the Java method you wish to restart, and select Drop to Frame from Debug view toolbar or the stack frame's context menu. The current instruction pointer will be reset to the first executable statement in the method. This works for non-top stack frames as well.

Can I do this in IDEA? Thanks

0
Comment actions Permalink

And when you are done reading the Eclipse help, you can try taking a
quick look at IDEA's (sorry, couldnt resist ;)


java8964 wrote:

OK. I already found out the answer in "set the value" menu. But I have another question like this:

From the Help for the Eclipse Platform - "When stepping through your code, you might occasionally step too far, or step over a line you meant to step into. Rather than restarting your debug session, you can use the Drop to Frame action to quickly go back to the beginning of a method. Select the stack frame corresponding to the Java method you wish to restart, and select Drop to Frame from Debug view toolbar or the stack frame's context menu. The current instruction pointer will be reset to the first executable statement in the method. This works for non-top stack frames as well.

Can I do this in IDEA? Thanks

0
Comment actions Permalink

thumbs up ;)

And when you are done reading the Eclipse help, you
can try taking a
quick look at IDEA's (sorry, couldnt resist ;)

0

Please sign in to leave a comment.