profile
viewpoint

Ask questionsCannot bind listener: operation not permitted

Actual Behavior

[Error] Error: Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Command failed: adb -s "emulator-5554" reverse tcp:8081 tcp:8081 adb.exe: error: cannot bind listener: Operation not permitted

using android studio adv I set path to platform-tools

Starting custom debugger by executing: echo A debugger is not needed:

Expected Behavior

I would like to debug step, but i get this error, and the top bar for stopping or debugging disappears.

Software versions

  • React-Native VS Code extension version: 0.9.3
  • VSCode version: 1.35.1
  • Windows 10
  • NodeJS version: npm: '6.9.0',
  • React Native version: "react-native": "0.59.9",

Outputs (Include if relevant)

  • Output of the Debug Console (View -> Toggle Debug Console):
OS: win32 x64
Adapter node: v10.2.0 x64
vscode-chrome-debug-core: 6.7.46
Could not debug. Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Command failed: adb -s "emulator-5554" reverse tcp:8081 tcp:8081
adb.exe: error: cannot bind listener: Operation not permitted

  • Output of the React-Native output channel (View -> Toggle Output -> Select React-Native in ListBox):
[Info] Packager is already running.

[Info] Prewarming bundle cache. This may take a while ...

[Info] About to get: http://localhost:8081/index.bundle?platform=android

[Warning] The Bundle Cache was prewarmed.

[Info] Building and running application.

 BUNDLE  [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (1/1), done.

[Error] Error: Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Error while executing command 'adb -s "emulator-5554" reverse tcp:8081 tcp:8081': Command failed: adb -s "emulator-5554" reverse tcp:8081 tcp:8081
adb.exe: error: cannot bind listener: Operation not permitted


Starting custom debugger by executing: echo A debugger is not needed:  "c:\Project\Harborapp"

  • Output of the Developer Tools console (Help -> Toggle Developer Tools -> Select Console tab):
workbench.main.js:4357 Overwriting grammar scope name to file mapping for scope source.js.
Old grammar file: file:///c%3A/Users/Origin/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/javascript/syntaxes/JavaScript.tmLanguage.json.
New grammar file: file:///c%3A/Users/Origin/.vscode/extensions/mgmcdermott.vscode-language-babel-0.0.22/grammars/Babel-Language.json
register @ workbench.main.js:4357
workbench.main.js:3313 [Extension Host] debugger listening on port 36911
workbench.main.js:238 [Extension Host] (node:2692) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] (node:2692) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
microsoft/vscode-react-native

Answer questions OriginLive

adb start-server

  • daemon not running; starting now at tcp:5037
  • daemon started successfully

however no change. What's wrong with my adb?

useful!

Related questions

[Error] TypeError: ConfigUtils(...).configFilenameAsync is not a function hot 134
Can't attach packager for debugging hot 106
Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 99
/bin/sh: 1: adb: not found on Linux hot 55
Error while executing command 'react-native run-ios --simulator --no-packager' hot 39
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 33
Cannot read property 'getCurrentUserAsync' of undefined hot 26
Current workspace does not contain React Native projects hot 22
Unable to resolve module `../Components/AccessibilityInfo/AccessibilityInfo` message hot 21
Version 0.13 breaks running packager from VS Code from different folder hot 15
Could not debug - error code 604 hot 13
Not all success patterns were matched. (error code 712) hot 12
Current workspace does not contain React Native projects hot 11
Expo app doesn't connect to packager hot 10
Current workspace does not contain React Native projects hot 10
Github User Rank List