Skip to content

Support "Drop to frame" #235

Closed
Closed

Description

@mojo2012

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

Activity

  1. akaroml commented on Mar 2, 2018

    @akaroml
    Member

    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.

    Yaohai Zheng (@yaohaizh) please double confirm.

  2. mojo2012 commented on Mar 2, 2018

    @mojo2012
    Author

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

  3. yaohaizh commented on Mar 6, 2018

    @yaohaizh
    Contributor

    VSCode provide a mechanism to restart the frame.

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

  4. added this to the 0.8.0 milestone on Mar 15, 2018
  5. yaohaizh commented on Mar 28, 2018

    @yaohaizh
    Contributor

    Merged.

  6. hwellmann commented on Mar 30, 2022

    @hwellmann

    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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions