Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "Drop to frame" #235

Closed
mojo2012 opened this issue Feb 9, 2018 · 5 comments
Closed

Support "Drop to frame" #235

mojo2012 opened this issue Feb 9, 2018 · 5 comments

Comments

@mojo2012
Copy link

mojo2012 commented Feb 9, 2018

It's very hand to be able to "drop to frame" (eclipse terminology) while debugging. Basically it allows you to restart at the beginning of a method (or any method on the stack).
This is especially useful when using DCEVM or jrebel to inject code changes and rerun them.

Environment
  • Operating System: macOS 10.12.6 (16G1212)
  • JDK version: 1.8.0_144-b01
  • Visual Studio Code version: 1.20.0 (1.20.0)
  • Java extension version: 0.18.1
  • Java Debugger extension version:0.6.0
Steps To Reproduce
  1. set a breakpoint in the middle of a method and break there
Current Result

no way to restart method

Expected Result

key short cut or context menu option on stack to restart at top of method

@akaroml
Copy link
Member

akaroml commented Mar 2, 2018

Technically, we are able to do so. This happens automatically if you are using Hot Code Replace. But as far as I know, we don't have the menu entry to trigger this function manually. If you right-click on a function of the call stack, the context menu entries are generated by VS Code and cannot be customized.

@yaohaizh please double confirm.

@mojo2012
Copy link
Author

mojo2012 commented Mar 2, 2018

If it's not possible to customize the menu entries, why not add at least a "command" for this?

@yaohaizh
Copy link
Contributor

yaohaizh commented Mar 6, 2018

VSCode provide a mechanism to restart the frame.

Investigate the code in this sprint and targeting release on next Sprint.

@yaohaizh
Copy link
Contributor

Merged.

@hwellmann
Copy link

Note for anyone landing here in search of the "Drop to frame" feature and wondering how to use it:

VS Code now has a 'Restart Frame' action in the stack frame context menu in the CALL STACK viewlet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants