# Part 1: Getting Started: 13 Debugging in VSCode NOT working

**URL:** <https://forum.codewithmosh.com/t/part-1-getting-started-13-debugging-in-vscode-not-working/3014>\
**Category:** React Native\
**Created:** [February 25, 2021, 6:12pm UTC](https://forum.codewithmosh.com/t/part-1-getting-started-13-debugging-in-vscode-not-working/3014 "2021-02-25T18:12:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JerryC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jerryc/32/859_2.png) [@JerryC](https://forum.codewithmosh.com/u/JerryC)\
**Post date:** [February 25, 2021, 6:12pm UTC](https://forum.codewithmosh.com/t/part-1-getting-started-13-debugging-in-vscode-not-working/3014/1 "2021-02-25T18:12:00Z")

</div>

DEBUG PANEL ONLY ALLOWS RESTART AND STOP OPERATIONS

My OS: Windows 10 Pro

inserted a break point in code at:  
 → let x = 1;  
In debug panel:  
Choose “Attach to packager” and click green run button  
OUTPUT window:  
:  
[Info] Packager started.  
-----NOTE: I ran netstat and cannot determine what port Packager is running on

DEBUG CONSOLE window:  
Attaching to the application  
Starting debugger app worker.  
Established a connection with the Proxy (Packager) to the React Native application

Mosh reloads AVD (so it must of been started prior)  
So I stop debugger, run app → $npm start, then connect to AVD  
On AVD I go to Dev Mode, and reload  
looks like code stopped at breakpoint, BUT the debugger only allows Restart and Stop

Mosh’s debugger allows All Operations and the breakpoint is highlighted  
…my npm start is still running (with the React Native Debugger tab open), so I close the tab and reload from AVD which launches a React Native Debugger tab again. In debug panel: I stop the debugger. In the Console Window cntrl-C (stop native-react app)  
I notice that the AVD getting a network communication error (As I would expect!)  
I start the debugger  
From AVD, I do a reload (see spinner), then get:  
“Something went wrong.  
Network response timed out”

Looks like I have “a chicken before the egg” problem here.

---

<div class="post-metadata">

**Author:** ![herrifransisca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/herrifransisca/32/953_2.png) [@herrifransisca](https://forum.codewithmosh.com/u/herrifransisca)\
**Post date:** [February 27, 2021, 1:45am UTC](https://forum.codewithmosh.com/t/part-1-getting-started-13-debugging-in-vscode-not-working/3014/2 "2021-02-27T01:45:27Z")

</div>

Hi JerryC

I too have same experience with you.

even using “react native debugger” not working on my machine

I guess because it’s operating system “windows” or the android emulator expo

---

<div class="post-metadata">

**Author:** ![rcfrias](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/rcfrias/32/1634_2.png) [@rcfrias](https://forum.codewithmosh.com/u/rcfrias)\
**Post date:** [May 19, 2021, 11:41pm UTC](https://forum.codewithmosh.com/t/part-1-getting-started-13-debugging-in-vscode-not-working/3014/3 "2021-05-19T23:41:58Z")

</div>

Just FYI.- newest OS/Devices might not be fully supported. In my case I tried iOS 14.5 with simulator and it totally crashed expo ton of errors.

I wasn’t able to fix it with the newest iOS, so I went back a couple of iOS versions and it now all works flawless. Have you guys tried a similar approach in Android?

---

<div class="post-metadata">

**Author:** ![combyses](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@combyses](https://forum.codewithmosh.com/u/combyses)\
**Post date:** [February 22, 2022, 1:44am UTC](https://forum.codewithmosh.com/t/part-1-getting-started-13-debugging-in-vscode-not-working/3014/4 "2022-02-22T01:44:05Z")

</div>

React Native Debugger is not working. Apparently there is a problem with React Native. See this link:

> **[EISDIR: illegal operation on a directory when enable Remote Debug in Managed...](https://forums.expo.dev/t/eisdir-illegal-operation-on-a-directory-when-enable-remote-debug-in-managed-workflow/53732/24)**
>
> I applied a patch on metro package using patch-package but I get this error Error: Unable to resolve module \`./debugger-ui/debuggerWorker.cff11639.js\` from \`\`: · Issue #28844 · facebook/react-native · GitHub instead. Try another emulator but stilll...
