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

Error processing "stepIn": Can only perform operation while paused. #27696

Closed
egamma opened this issue May 31, 2017 · 3 comments
Closed

Error processing "stepIn": Can only perform operation while paused. #27696

egamma opened this issue May 31, 2017 · 3 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Milestone

Comments

@egamma
Copy link
Member

egamma commented May 31, 2017

Testing #26557

  • Using the smoke test repository https://github.com/Microsoft/vscode-smoketest-express. Change the launch config to use the inspector protocol
  • set a break point at index.js line 6
  • F5
  • navigate to localhost:3000
  • use F11 to step quickly into the code (hold F11 pressed)
[node-debug2] Error processing "stepIn": Can only perform operation while paused.: Error: [node-debug2] Error processing "stepIn": Can only perform operation while paused.
    at file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:2148932
    at Object.v [as _notify] (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:70090)
    at Object.enter (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:73591)
    at n.Class.derive._oncancel._run (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:74912)
    at n.Class.derive._oncancel._error (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:74429)
    at file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:1941224
    at g.e.dispatch (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:1942575)
    at g.e.handleData (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:1942083)
    at Socket.<anonymous> (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:1941084)
    at emitOne (events.js:96:13)
@egamma egamma added the debug Debug viewlet, configurations, breakpoints, adapter issues label May 31, 2017
@isidorn
Copy link
Contributor

isidorn commented May 31, 2017

This error is coming from the node2 debug adapter thus forwarding to @roblourens
Since it is a common use case that users quickly press step I suggest we simply swallow the error when you are not paused.

@isidorn isidorn assigned roblourens and unassigned isidorn May 31, 2017
@roblourens
Copy link
Member

roblourens commented May 31, 2017

@isidorn It looks like vscode will send stepIn requests constantly without waiting for the debug adapter to be paused. Is that expected? In which case, yes I should just swallow the error from Chrome.

@isidorn
Copy link
Contributor

isidorn commented Jun 1, 2017

@roblourens yes vscode will send stepIn requests as user successfully clicks on them.

In the perfect scenario I would disable the stepIn until the debugger is paused, but I do not change state until I get a response from the debugger, thus the user can press StepIn 10 times before the first response is back and the debugger is no longer stopped.

Bottom line I think you should just swallow the error from Chrome :)

@roblourens roblourens added this to the June 2017 milestone Jun 1, 2017
@roblourens roblourens modified the milestones: July 2017, June 2017 Jun 28, 2017
@roblourens roblourens modified the milestones: August 2017, July 2017 Jul 31, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

3 participants