profile
viewpoint

Ask questionsCould not debug - error code 604

Actual Behavior

  1. run VSCODe
  2. try to debug on iOS or Android 3 .
Could not debug. Seems to be that you are trying to debug from within directory that is not a React Native project root. 
 If so, please, follow these instructions: https://github.com/Microsoft/vscode-react-native/blob/master/doc/customization.md#project-structure. (error code 604)

4 - after I removed rn cli from global :

******** Unhandled error in debug adapter - Unhandled promise rejection: Error: spawn react-native ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
    at onErrorNT (internal/child_process.js:407:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Could not debug. Seems to be that you are trying to debug from within directory that is not a React Native project root. 
 If so, please, follow these instructions: https://github.com/Microsoft/vscode-react-native/blob/master/doc/customization.md#project-structure. (error code 604)

Screen Shot 2019-10-29 at 10 50 03 AM

Screen Shot 2019-10-29 at 10 53 20 AM

Expected Behavior

  1. just run as normal as before

Software versions

  • React-Native VS Code extension version: latest - 0.12.1
  • VSCode version: latest - 1.39.2
  • OS platform and version: mac - latest - 10.15
  • NodeJS version: latest - 12.12.0
  • React Native version: 0.61.2
  • Expo SDK version (include if relevant): -
microsoft/vscode-react-native

Answer questions DarshanTCMACC

okay fine ! @SounD120 Edit: Thanks for Suggestion its working now.. @SounD120

useful!

Related questions

Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 4
Error while executing command 'react-native run-ios --simulator --no-packager' hot 2
Cannot read property 'getCurrentUserAsync' of undefined hot 1
Expo app doesn't connect to packager hot 1
Current workspace does not contain React Native projects hot 1
Current workspace does not contain React Native projects hot 1
[Bug][Expo] XDLError: packagerPort must be an integer - vscode-react-native hot 1
Version 0.13 breaks running packager from VS Code from different folder hot 1
Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 1
Starting React packager from VSCode fails hot 1
Can't attach packager for debugging hot 1
Cannot bind listener: operation not permitted hot 1
Not all success patterns were matched. (error code 712) hot 1
Current workspace does not contain React Native projects hot 1
Cannot bind listener: operation not permitted hot 1
Github User Rank List