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

Setting BP - Cannot read property 'length' of undefined #15194

Closed
roblourens opened this issue Nov 8, 2016 · 2 comments
Closed

Setting BP - Cannot read property 'length' of undefined #15194

roblourens opened this issue Nov 8, 2016 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Milestone

Comments

@roblourens
Copy link
Member

I keep seeing this in Insiders when trying to set a BP.

shell.ts:451 Cannot read property 'length' of undefined: TypeError: Cannot read property 'length' of undefined
    at o (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:120:27174)
    at file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:120:28788
    at Array.map (native)
    at t.sendToOneOrAllProcesses (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:120:28765)
    at t.sendBreakpoints (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:120:27693)
    at t.addBreakpoints (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:120:14308)
    at file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:110:11605
    at file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:30609
    at o (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:23360)
    at t.e._emitToSpecificTypeListeners (file:////Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:25601)e.onUnexpectedError @ shell.ts:451(anonymous function) @ shell.ts:364e.onUnexpectedError @ errors.ts:68r @ errors.ts:83o @ eventEmitter.ts:305e._emitToSpecificTypeListeners @ eventEmitter.ts:182e._emitEvents @ eventEmitter.ts:201e.emit @ eventEmitter.ts:216(anonymous function) @ commonCodeEditor.ts:803o @ eventEmitter.ts:303e._emitToBulkListeners @ eventEmitter.ts:190e._emitEvents @ eventEmitter.ts:196e.emit @ eventEmitter.ts:216e.emitMouseDown @ viewController.ts:300t._onMouseDown @ mouseHandler.ts:321(anonymous function) @ mouseHandler.ts:178(anonymous function) @ editorDom.ts:66_wrapHandler @ dom.ts:196
@roblourens roblourens added the debug Debug viewlet, configurations, breakpoints, adapter issues label Nov 8, 2016
@isidorn isidorn added this to the November 2016 milestone Nov 9, 2016
@isidorn isidorn added bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster labels Nov 9, 2016
@isidorn
Copy link
Contributor

isidorn commented Nov 9, 2016

@roblourens I can not reproduce this - how do you set the breakpoint, in what type of file?
This minimized stack trace is not a lot of use to me - you could open developer tools > pause on exceptions > format minimized code and send the screenshot on where you break.

Also you could try reproudcing with out of source

@roblourens
Copy link
Member Author

In Javascript, usually after a couple debugging sessions in the editor. Goes away for awhile if I restart it.

image

t.cachedCallStack is undefined.
image

@isidorn isidorn removed the info-needed Issue requires more information from poster label Nov 10, 2016
@roblourens roblourens added the verified Verification succeeded label Dec 8, 2016
@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
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

2 participants