Open Yajur-Grover opened 4 months ago
Hey @Yajur-Grover, I think using node.js
debug request should be related to vscode built-in extension vscode-js-debug. All default debug configurations should be supported in js-debug.
React-native-tools is the separate extension should be installed manually. Checked your repro steps, it should use vscode default debug config: Node.js: attach
. Please create an issue in vscode-js-debug repo.
Any other questions please let me know, thank you!
@EzioLi01 is this the extension you meant to link?: https://github.com/microsoft/vscode-js-debug. The link in your comment leads me to the current repo.
@Yajur-Grover Yes, this is the vscode built-in debug extension, also it's the upstream depended extension for almost of vscode debugger extensions.
But one thing I want to mention that I have tried on Edge DevTools for hermes direct debugging using react-native template app, still got same error, so I'm not sure if it's the valid bug for vscode-js-debug.
Hi @Yajur-Grover, Hi @EzioLi01,
Please look into a related and more generic issue what I created: https://github.com/microsoft/react-native-windows/issues/12654
As I detailed this direct debugging using Hermes JS engine issue affects
In RNW 0.72 https://www.nuget.org/packages/ReactNative.Hermes.Windows/ NuGet package was replaced with https://www.nuget.org/packages/Microsoft.JavaScript.Hermes
Checked same scenario on react-native mobile platform, this issue is not repro.
@EzioLi01 okay thank you for the clarification. This issue is also being internally investigated - if there is an update will post here.
@Yajur-Grover Cool, I will keep this issue here, thank you!
🐛 What is the bug? How can we reproduce it?
When setting a breakpoint in a JavaScript source file in a React Native Windows application, with a Node.js debugger attached, there are no local variables being displayed in the Variables section in the Run and Debug menu. Additionally, when I add variables to 'Watch', they all evaluate to the following error message: 'Uncaught Error: Can't evalInFrame: Environment not found'.
Please put here any steps, code or any information that can help us reproduce the error on our side so we can fix it:
Expected behavior
I was expecting being able to read the values of the variables that I add to 'Watch' at the instance when I hit a set breakpoint.
Debug output
Debug Console
The error below comes from a yellow box warning error that is present throughout the application and is unrelated to the specific breakpoint that is being set. ```text All focusable views should report proper accessibility information. Views marked as focusable should always be accessible. at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at Pressable (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:120640:27) at anonymous (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:76320:62) at PlatformPressable (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:183722:25) at LinkPressable (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:182092:21) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at DrawerItem (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:182142:93) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at CustomDrawerContent (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:125867:118) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at AnimatedComponent(View) (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:187545:38) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at AnimatedComponent(View) (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:187545:38) at Dummy (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:189241:24) at Drawer (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:188815:36) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at Drawer (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:184107:38) at DrawerViewBase (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:189860:21) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at CompatNativeSafeAreaProvider (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:181938:24) at SafeAreaProvider (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:181806:24) at SafeAreaProviderCompat (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:183913:24) at DrawerView (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:190098:27) at PreventRemoveProvider (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:130504:25) at NavigationContent (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:131315:22) at anonymous (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:131331:27) at DrawerNavigator (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:190418:18) at MyDrawer at EnsureSingleNavigator (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:127443:24) at BaseNavigationContainer (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:127040:28) at ThemeProvider (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:132846:21) at NavigationContainerInner (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:132732:26) at App (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:125963:50) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at RCTView at View (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:60075:43) at AppContainer (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:59925:36) at rngallery(RootComponent) (http://localhost:8081/index.bundle//&platform=windows&dev=true&hot=true&inlineSourceMap=true:111340:28) ```React Native output channel
```text N/A - output channel was blank, there was no option to select React-Native. ```Developer Tools console
```text INFO Started local extension host with pid 39820. log.ts:427 WARN Skipping extension /c:/Users/yajurgrover/.vscode-insiders/extensions/ms-vscode.js-debug-1.83.1 in favour of the builtin extension /c:/Users/yajurgrover/AppData/Local/Programs/Microsoft VS Code Insiders/resources/app/extensions/ms-vscode.js-debug. log.ts:417 INFO [perf] Render performance baseline is 29ms 12log.ts:427 WARN [cmake-tools]: Couldn't find message for key cmake-tools.configuration.cmake.options.advanced.statusBarLength.description. 3log.ts:437 ERR No expression to evaluate log.ts:437 ERR No expression to evaluate ```Screenshot of 'Watch' variables section:![image](https://github.com/microsoft/vscode/assets/157416350/16c783b9-2b62-4103-aa01-9034481d3f4a)
Corresponding break point:![image](https://github.com/microsoft/vscode/assets/157416350/dd29a7df-d7bc-4e40-b5c4-1a9229c02813)
Environment
Please tell us about your system and your project:
npx react-native doctor
ornpx expo doctor
if your project is using Expo:envinfo
: