-
Notifications
You must be signed in to change notification settings - Fork 267
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
Local Variable values not displaying when debugging React Native Windows app in VS Code #2117
Comments
Hey @Yajur-Grover, I think using React-native-tools is the separate extension should be installed manually. Checked your repro steps, it should use vscode default debug config: 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: microsoft/react-native-windows#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.React Native output channel
Developer Tools console
Screenshot of 'Watch' variables section:
Corresponding break point:
Environment
Please tell us about your system and your project:
npx react-native doctor
ornpx expo doctor
if your project is using Expo:envinfo
:The text was updated successfully, but these errors were encountered: