-
Notifications
You must be signed in to change notification settings - Fork 32
Breakpoint not hit with launch options in OSX but attach #207
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
Comments
Hi @DavoBR, |
Hi @tsonevn, I am having the same issue. For me I have the newest code extension installed (0.8.1) and tried it with the latest nativescript version (4.2.4) and the nativescript RC 4.2.4-2018-09-17-12236. I used node version 10.11.0. For me it happens when deploying on a simulator, didn't have the chance to try deploying it to a device in this setup yet. |
the first time I had installed node 8.12.0 now I install version 10.11.0 but likewise the error persists. this is the output of vscode after start debug
|
Is there a way to solve it? Same happens to me when I |
Hi @racknoris, |
Edit: It turned out I needed to brew uninstall and reinstall python. Now it is working. The problems initially:
When trying to use the extension, the debugger fails to attach. Here is a sample output:
|
From @DavoBR on September 14, 2018 1:18
tns doctor result:
DAVID-MAC:~ davo$ tns doctor
✔ Getting environment information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 4.2.3 version and is up to date.
VSCode version: 1.27.2
Symptoms:
Breakpoint not hit when a i choose "Launch on iOS" options to start debug but work when i choose "Attach on iOS"
I get this when start debug in VSCode
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in
import weakref
File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in
from _weakref import (
ImportError: cannot import name _remove_dead_weakref
TypeError: Cannot set property 'deviceIdentifier' of undefined
at SocketProxyFactory. (/Users/davo/.nvm/versions/node/v10.10.0/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:88:46)
at Generator.throw ()
at rejected (/Users/davo/.nvm/versions/node/v10.10.0/lib/node_modules/nativescript/lib/device-sockets/ios/socket-proxy-factory.js:5:65)
Copied from original issue: NativeScript/NativeScript#6265
The text was updated successfully, but these errors were encountered: