Skip to content

UI support for TimeTravel Debugging #7652

Closed

Activity

  1. added
    feature-request
    debug
    on Jun 14, 2016
  2. isidorn commented on Jun 14, 2016

    @isidorn
    Author

    roblourens I like how you implemented this in the prototpye. Would you like to create a PR with your changes + plus a small adition that you only instantitate that aciton if stepBack is supported

    And the label needs to be nls.localized.
    And it also needs to be registered as a global workbench action.

  3. roblourens commented on Jun 14, 2016

    @roblourens
    Member

    Sure, I can do that

  4. weinand commented on Jun 14, 2016

    @weinand
    Contributor

    roblourens I've added the 'step back' request and the capability to the debug protocol. It is already available in the latest VS Code.
    The mock-debug extension (available on the marketplace) implements step back and can be used to verify the UI.

  5. roblourens commented on Jun 15, 2016

    @roblourens
    Member

    plus a small adition that you only instantitate that aciton if stepBack is supported
    Isidor Nikolic (@isidorn) you're talking about DebugActionsWidget.getActions? I could instantiate it the first time a session starts that supports stepBack, and on subsequent calls, either include it or not in the array that's returned? Or, it is possible to just hide a debug action with a css class if it's not supported?

  6. isidorn commented on Jun 15, 2016

    @isidorn
    Author

    The actions get instantiated every time the widget gets created, so just instantiate it or not every time based on the capability.
    No need to hide imho

  7. roblourens commented on Jun 15, 2016

    @roblourens
    Member

    If I understand correctly, it looks like the widget is created once for the lifetime of the Code instance, and the actions are created once and cached and reused for every debug session.

  8. added a commit that references this issue on Jun 16, 2016
    e9ee991
  9. weinand commented on Jun 16, 2016

    @weinand
    Contributor

    roblourens Isidor Nikolic (@isidorn) works great, thanks!

    Arunesh Chandra (@aruneshchandra) the TimeTravel UI is available in the next VS Code Insider build.

  10. aruneshchandra commented on Jun 16, 2016

    @aruneshchandra
    Member

    Andre Weinand (@weinand) Isidor Nikolic (@isidorn) roblourens Thanx for a quick turnaround on this feature request!

  11. isidorn commented on Jun 17, 2016

    @isidorn
    Author

    Arunesh Chandra (@aruneshchandra) welcome. Is the chakra debug adapter extension published - I could not find it? Is there some way we can try this out - since we woudl ike to add it to our test plan.

  12. aruneshchandra commented on Jun 17, 2016

    @aruneshchandra
    Member
  13. agarwal-sandeep commented on Jun 17, 2016

    @agarwal-sandeep

    Isidor Nikolic (@isidorn) Node-ChakraCore is supposed to work with vscode-node-debug adapter as Node-ChakraCore will support the debugging protocol without extensibility.

    roblourens had added a 'back' stepaction to 'continue' command in the vscode-node-debug adapter prototype. roblourens/vscode-node-debug@fdc0ea2 that change needs to be in adapter if UI says stepback.

  14. aruneshchandra commented on Jun 17, 2016

    @aruneshchandra
    Member

    Sandeep Agarwal (@agarwal-sandeep) are you saying that the current VSCode implementation for stepBack functionality is not complete ?

  15. agarwal-sandeep commented on Jun 17, 2016

    @agarwal-sandeep

    node.exe (Chakracore) needs to know that step back is requested and it is not in debugging protocol so adapter needs to send a different action in continue command and I don't see it in https://github.com/Microsoft/vscode-node-debug/blob/master/src/node/nodeDebug.ts

    roblourens Andre Weinand (@weinand) how will adapter notify the process?

  16. weinand commented on Jun 17, 2016

    @weinand
    Contributor

    Sandeep Agarwal (@agarwal-sandeep) we have implemented the UI as requested in microsoft/vscode-node-debug#72. Currently the UI can be controlled by a capability returned from the debug adapter. Our assumption was that Chakra would have its own debug adapter and that would enable the capability and implement a 'step back' request. microsoft/vscode-node-debug#72 did not mention that we have to implement the 'step back' request in vscode-node-debug.

    Please create another feature request for vscode-node-debug so that we can enable the capability and implement the 'step back'. For the latter we need to know what the value for the stepactionof the continue request is.

    I see one problem with this feature request: the debug-adapter has to return the 'step-back' capability from the 'initialise' request. But there we do not know whether the used node version supports 'step back' or not. This information is only available when the runtime is launched. But this is too late for returning the capabilities. We can address this sequence problem is the future, but for this release we have to find another way to determine early that chakra is used and supports 'step back'.

  17. agarwal-sandeep commented on Jun 20, 2016

    @agarwal-sandeep

    Thanks Andre Weinand (@weinand), I have open issue microsoft/vscode-node-debug#77.

    For capability detection is it feasible to use some environment variable?

  18. weinand commented on Jun 20, 2016

    @weinand
    Contributor

    Sandeep Agarwal (@agarwal-sandeep) sure, node-debug could use an environment variable as an indicator that node.js is actually chakra.

    Please suggest how the env var should be named.

    Please note that this env var cannot be set in the launch config but must be set globally.
    Let me know if this would work for you (until we've fixed the real issue).

  19. agarwal-sandeep commented on Jun 20, 2016

    @agarwal-sandeep

    Arunesh Chandra (@aruneshchandra) Mark Marron (@mrkmarron) for their feedback. We can use NODE_DEBUG_SUPPORTS_STEPBACK=1

  20. aruneshchandra commented on Jun 21, 2016

    @aruneshchandra
    Member

    Sandeep Agarwal (@agarwal-sandeep) how is this supposed to get set ? Is the user is expected to set this ?

  21. weinand commented on Jun 21, 2016

    @weinand
    Contributor

    Sandeep Agarwal (@agarwal-sandeep) yes, the user would have to do this (which would be a pain). We are currently looking into how to fix this issue.

  22. weinand commented on Jun 21, 2016

    @weinand
    Contributor

    Sandeep Agarwal (@agarwal-sandeep) we are planning to enhance VS Code so that the supportsStepBack capability can be returned from the launch and attach requests.

  23. aruneshchandra commented on Jun 21, 2016

    @aruneshchandra
    Member

    Andre Weinand (@weinand) yes that's much better than expecting users to set the env variable. Thanx!

  24. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-requestverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions