Skip to content

[Major] Unable to start iOS debugger from VSCode extension #3826

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

Closed
nickcabral opened this issue Aug 19, 2018 · 3 comments
Closed

[Major] Unable to start iOS debugger from VSCode extension #3826

nickcabral opened this issue Aug 19, 2018 · 3 comments

Comments

@nickcabral
Copy link

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>
@rosen-vladimirov
Copy link
Contributor

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:

  1. Do you reproduce the issue with newly created project?
  2. Do you reproduce the issue with iOS Simulator or with device only?
  3. Does the issue occur when you use Chrome DevTools, i.e. can you reproduce it with tns debug ios from the terminal?

@nickcabral
Copy link
Author

@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:

  1. Yes I can repro the issue with a new project.
  2. I've only experienced the issue with a simulator; haven't had a chance to debug on a device recently.
  3. 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?

@rosen-vladimirov
Copy link
Contributor

Hey @nickcabral ,
Thanks for the information. I'm closing this thread as the other one has more information, so lets continue the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants