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

debugger disconnects after setting a breakpoint #17389

Closed
Let0s opened this issue Dec 16, 2016 · 4 comments
Closed

debugger disconnects after setting a breakpoint #17389

Let0s opened this issue Dec 16, 2016 · 4 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Milestone

Comments

@Let0s
Copy link

Let0s commented Dec 16, 2016

  • VSCode Version: 1.8.0 (also tested on 1.7.2)
  • OS: Windows 7

Steps to Reproduce:

  1. Set a breakpoint on 2nd line;
  2. Run node debugger;
  3. press F10 (Step Over);
  4. press F9 (set a breakpoint on current paused line [3rd line])

Note 1: it seems to be a floating bug, because sometimes it can't be reproduced on 4th step, and then we need to unset breakpoint and set it again (maybe even many times).

Note 2: if after 3rd step remove a breakpoint on 2nd line (then no one active breakpoints left) then 4th step will not cause this bug.

My sample filename is 'Файл.js' (it's important to make filename with cyrillic symbols, because i can't reproduce it in file with latin name)
My sample code is

let a = 34;
a += 23;
console.log(a);

my log with 'trace: all' option is

node --debug-brk=20583 --nolazy Файл.js
9948: _attach: address: 127.0.0.1 port: 20583
Debugger listening on [::]:20583
9948: _attach: connected
9948: _stopped: got break event from node
9948: _stopped: new ref cache
9948: _analyzeBreak: suppressed stop-on-entry event
9948: _initialize: got process id 9688 from node
9948: _injectDebuggerExtensions: frame based code injection successful
9948: _startInitialize: stopped: true
9948: _startInitialize: got break on entry event after 0 retries
9948: _startInitialize2: fire initialized event
9948: _startInitialize2: remember to do a 'Continue' later
9948: setBreakPointsRequest: {"path":"d:\Temp\Файл.js","name":"Файл.js"} [{"line":2}]
9948: _setBreakpoint: {"type":"scriptRegExp","target":"^(.*[\/\\])?[dD]:\\Temp\\Файл\.js$","line":1,"column":0}
9948: _updateBreakpoints: result [{"verified":true,"line":2,"column":1}]
9948: setFunctionBreakPointsRequest: result []
9948: setExceptionBreakPointsRequest: ["uncaught"]
9948: configurationDoneRequest: do a 'Continue'
9948: _stopped: got break event from node
9948: _stopped: new ref cache
9948: stackTraceRequest: vscode_backtrace 0 20
9948: NodeV8Protocol hook: ref cache size: 20
9948: __readFile: d:\Temp\Файл.js
9948: _loadScript: 63
9948: NodeV8Protocol hook: ref cache size: 21
9948: scopesRequest: scope 0
9948: NodeV8Protocol hook: ref cache size: 24
9948: _resolveToCache: vscode_lookup 4 handles
9948: NodeV8Protocol hook: ref cache size: 32
9948: _resolveToCache: vscode_lookup 1 handles
9948: _resolveToCache: vscode_lookup 2 handles
9948: NodeV8Protocol hook: ref cache size: 57
9948: _stopped: got break event from node
9948: _stopped: new ref cache
9948: stackTraceRequest: vscode_backtrace 0 20
9948: NodeV8Protocol hook: ref cache size: 20
9948: scopesRequest: scope 0
9948: NodeV8Protocol hook: ref cache size: 23
9948: _resolveToCache: vscode_lookup 4 handles
9948: NodeV8Protocol hook: ref cache size: 31
9948: _resolveToCache: vscode_lookup 1 handles
9948: _resolveToCache: vscode_lookup 2 handles
9948: NodeV8Protocol hook: ref cache size: 56
9948: setBreakPointsRequest: {"name":"d:\Temp\Файл.js","path":"d:\Temp\Файл.js","sourceReference":0} [{"line":2},{"line":3}]
9948: _terminated: socket end
9948: _terminated: node v8protocol close
9948: shutdown: kill debugee and sub-processes
9948: disconnectRequest: send response
9948: _terminated: target exited
9948: _terminated: target closed

@Let0s
Copy link
Author

Let0s commented Dec 16, 2016

P.S. I could reproduce this without 3rd step

@weinand
Copy link
Contributor

weinand commented Mar 16, 2017

@Let0s does this problem no longer occur?

@Let0s
Copy link
Author

Let0s commented Mar 16, 2017

This issue was mistakenly reported here because actual problem belongs to Node.js. This problem should be resolved once this PR nodejs/node#11841 will be merged

@weinand
Copy link
Contributor

weinand commented Mar 16, 2017

@Let0s great, thanks for the info!

@weinand weinand added this to the March 2017 milestone Mar 16, 2017
@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Mar 28, 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 upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants