-
Notifications
You must be signed in to change notification settings - Fork 269
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
VSCode cannot catch when the breakpoint is reached #334
Comments
@vonweb, what version of NodeJS are you running on? Also could you provide a sample app where the problem can be reproduced? |
@vladimir-kotikov node is v6.9.1, and I cloned from https://github.com/mrpatiwi/ReactNativeTS, breakpoint is set at src/components/HelloWorld/index.tsx:30 |
Thanks for details. At first look it sounds like #273, but with some differences:
This sounds like another bug with Node, so we'd need to report this to NodeJS team |
Upd.: On Node 7.x breakpoint event is successfully reported by Node, but right after that one of debug adapter requests (variables, stack, etc.) causes node to crash. Not sure yet, whether this is still an issue with Node or As a workaround you can switch to Node 4.x, which seems to work fine |
thanks for your reply, I tried node v4.6.2, with react-native-cli: 1.2.0, react-native: 0.37.0 but I run into some other problems. in vscode console I get: |
@vladimir-kotikov can you really debug with node v4, in #311 node must be v6, I can package with node v4, but cannot debug with it in vscode |
Yeah, you probably right The debugger crash on Node 7.x is also being tracked here |
This issue has been fixed by switching to |
Actual Behavior
Expected Behavior
Software versions
Outputs (Include if relevant)
Debugger listening on [::]:48864
[vscode-react-native] Downloaded debuggerWorker.js (Logic to run the React Native app) from the Packager.
[vscode-react-native] Starting debugger app worker.
[vscode-react-native] Established a connection with the Proxy (Packager) to the React Native application
[vscode-react-native] Debugging session started successfully.
Running application "ReactNativeTS" with appParams: {"initialProps":{},"rootTag":1}. DEV === true, development-level warning are ON, performance optimizations are OFF
Getting exponent dependecy.
######### Checking react native is correctly setup. This may take a while... ##########
Checking if the correct react native is installed..
######### Starting Packager ##########
######### Executing command: react-native.cmd start --port 8081 ##########
[Error : 0106] Failed to start the React Native packager: Could not start the packager.
Scanning 583 folders for symlinks in e:\WorkSpace\ReactNativeTS\node_modules (298ms)
┌────────────────────────────────────────────────────────────────────────────┐
│ Running packager on port 8081. │
│ │
│ Keep this packager running while developing on any JS projects. Feel │
│ free to close this tab and run your own packager instance if you │
│ prefer. │
│ │
│ https://github.com/facebook/react-native │
│ │
└────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
e:\WorkSpace\ReactNativeTS
[Hot Module Replacement] Server listening on /hot
React packager ready.
[2016-11-08 16:55:26] Requesting bundle: {"url":"/index.android.bundle?platform=android"}
[2016-11-08 16:55:58] Initializing Packager
[2016-11-08 16:55:58] Building in-memory fs for JavaScript
[2016-11-08 16:55:58] Building in-memory fs for JavaScript (124ms)
[2016-11-08 16:55:58] Building Haste Map
[2016-11-08 16:55:58] Building Haste Map (117ms)
[2016-11-08 16:55:58] Initializing Packager (310ms)
[2016-11-08 16:55:58] Transforming modules
[2016-11-08 16:56:01] Transforming modules (3201ms)
######### The Bundle Cache was prewarmed. ##########
[2016-11-08 16:56:01] Requesting bundle: {"url":"/index.android.bundle?platform=android"} (35735ms)
[2016-11-08 16:56:43] Requesting bundle: {"url":"/index.android.bundle?platform=android&dev=true&hot=false&minify=false"}
[2016-11-08 16:56:43] Transforming modules
[2016-11-08 16:56:45] Transforming modules (1358ms)
[2016-11-08 16:56:45] Requesting bundle: {"url":"/index.android.bundle?platform=android&dev=true&hot=false&minify=false"} (1546ms)
Starting custom debugger by executing: echo A debugger is not needed: "e:\WorkSpace\ReactNativeTS"
Starting custom debugger by executing: echo A debugger is not needed: "e:\WorkSpace\ReactNativeTS"
[2016-11-08 16:56:50] Requesting bundle: {"url":"/index.android.bundle?platform=android&dev=true&hot=false&minify=false"}
[2016-11-08 16:56:50] Requesting bundle: {"url":"/index.android.bundle?platform=android&dev=true&hot=false&minify=false"} (20ms)
[2016-11-08 16:56:50] Requesting bundle: {"url":"/index.android.map?platform=android&dev=true&hot=false&minify=false"}
[2016-11-08 16:56:50] Requesting bundle: {"url":"/index.android.map?platform=android&dev=true&hot=false&minify=false"} (9ms)
Starting custom debugger by executing: echo A debugger is not needed: "e:\WorkSpace\ReactNativeTS"
[2016-11-08 16:58:58] Requesting bundle: {"url":"/index.android.bundle?platform=android&dev=true&hot=false&minify=false"}
[2016-11-08 16:58:58] Requesting bundle: {"url":"/index.android.bundle?platform=android&dev=true&hot=false&minify=false"} (26ms)
[2016-11-08 16:58:58] Requesting bundle: {"url":"/index.android.map?platform=android&dev=true&hot=false&minify=false"}
[2016-11-08 16:58:58] Requesting bundle: {"url":"/index.android.map?platform=android&dev=true&hot=false&minify=false"} (14ms)
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:121 [Extension Host] processWorkspaceFiles Array[4]0: Object1: Object2: Object3: Objectlength: 4__proto__: Array[0] true false
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:121 [Extension Host] processWorkspaceFiles Array[1] false true
The text was updated successfully, but these errors were encountered: