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
Copied from #3821, which has been prematurely closed (issue still exists). Really need the vscode debugger to work.
Tell us about the problem
{N} CLI is not able to start iOS debugger from VSCode extension.
Which platform(s) does your issue occur on?
iOS
Please tell us how to recreate the issue in as much detail as possible.
Steps to reproduce:
Create project and open it with VSCode extension
Run Launch on iOS from VSCode extension
An error is thrown: Error: Cannot connect to device socket. The error message is NativeScript debugger was not able to get inspector socket port. at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:125:28) at Errors.failWithoutHelp (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:135:21) at SocketProxyFactory.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:91:38) at Generator.throw (<anonymous>) at rejected (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:5:65) at <anonymous>
The text was updated successfully, but these errors were encountered:
Hey @nickcabral ,
Thanks for the report. We've tried to reproduce the behavior on our side, but without success. That's why we've closed the previous issue - on our side it seems fixed.
In order to investigate this further, can you please give us some more details:
Do you reproduce the issue with newly created project?
Do you reproduce the issue with iOS Simulator or with device only?
Does the issue occur when you use Chrome DevTools, i.e. can you reproduce it with tns debug ios from the terminal?
@rosen-vladimirov see my response on the related issue over on the nativescript-vscode-extension repo: link. You suggested a workaround to me over on that tread (thanks again!)
To answer your specific questions:
Yes I can repro the issue with a new project.
I've only experienced the issue with a simulator; haven't had a chance to debug on a device recently.
I don't experience the issue when I run tns debug ios directly from the terminal.
Based on #3, this seems to be a problem with the ns-vscode-extension, and not the NS CLI. So I think this issue can be closed, and the problem addressed on the the issue I linked above. Thoughts?
Copied from #3821, which has been prematurely closed (issue still exists). Really need the vscode debugger to work.
Tell us about the problem
{N} CLI is not able to start iOS debugger from VSCode extension.
Which platform(s) does your issue occur on?
iOS
Please tell us how to recreate the issue in as much detail as possible.
Steps to reproduce:
Error: Cannot connect to device socket. The error message is NativeScript debugger was not able to get inspector socket port. at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:125:28) at Errors.failWithoutHelp (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:135:21) at SocketProxyFactory.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:91:38) at Generator.throw (<anonymous>) at rejected (/usr/local/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:5:65) at <anonymous>
The text was updated successfully, but these errors were encountered: