You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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?
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
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.
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.
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.
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'.
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).
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.
Activity
isidorn commentedon Jun 14, 2016
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.
roblourens commentedon Jun 14, 2016
Sure, I can do that
weinand commentedon Jun 14, 2016
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.
roblourens commentedon Jun 15, 2016
isidorn commentedon Jun 15, 2016
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
roblourens commentedon Jun 15, 2016
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.
Merge pull request #7734 from roblourens/stepBack-1.3.0
weinand commentedon Jun 16, 2016
roblourens Isidor Nikolic (@isidorn) works great, thanks!
Arunesh Chandra (@aruneshchandra) the TimeTravel UI is available in the next VS Code Insider build.
aruneshchandra commentedon Jun 16, 2016
Andre Weinand (@weinand) Isidor Nikolic (@isidorn) roblourens Thanx for a quick turnaround on this feature request!
isidorn commentedon Jun 17, 2016
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.
aruneshchandra commentedon Jun 17, 2016
Sandeep Agarwal (@agarwal-sandeep) can tell you more about this.
cc:Curtis Man (@curtisman)
agarwal-sandeep commentedon Jun 17, 2016
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.
aruneshchandra commentedon Jun 17, 2016
Sandeep Agarwal (@agarwal-sandeep) are you saying that the current VSCode implementation for stepBack functionality is not complete ?
agarwal-sandeep commentedon Jun 17, 2016
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?
weinand commentedon Jun 17, 2016
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 thecontinuerequest 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'.
agarwal-sandeep commentedon Jun 20, 2016
Thanks Andre Weinand (@weinand), I have open issue microsoft/vscode-node-debug#77.
For capability detection is it feasible to use some environment variable?
weinand commentedon Jun 20, 2016
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).
agarwal-sandeep commentedon Jun 20, 2016
Arunesh Chandra (@aruneshchandra) Mark Marron (@mrkmarron) for their feedback. We can use NODE_DEBUG_SUPPORTS_STEPBACK=1
aruneshchandra commentedon Jun 21, 2016
Sandeep Agarwal (@agarwal-sandeep) how is this supposed to get set ? Is the user is expected to set this ?
weinand commentedon Jun 21, 2016
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.
weinand commentedon Jun 21, 2016
Sandeep Agarwal (@agarwal-sandeep) we are planning to enhance VS Code so that the
supportsStepBackcapability can be returned from thelaunchandattachrequests.aruneshchandra commentedon Jun 21, 2016
Andre Weinand (@weinand) yes that's much better than expecting users to set the env variable. Thanx!