Skip to content
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

Fix Local Variable Display in Debugger for React Native Windows #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cosineai[bot]
Copy link

@cosineai cosineai bot commented Oct 14, 2024

This pull request addresses the issue where local variables were not being displayed in the Variables section when debugging a React Native Windows application in VS Code. The problem was due to missing implementations for handling scope and variable requests in the DirectDebugSession class.

Changes Made:

  • Implemented scopesRequest method to define the local scope for the current frame.
  • Implemented variablesRequest method to fetch and display variables for the defined scope.

These changes ensure that when a breakpoint is hit, the local variables are correctly displayed in the debugger, and variables added to 'Watch' are evaluated properly.

This fix resolves the error message 'Uncaught Error: Can't evalInFrame: Environment not found' and improves the debugging experience by allowing developers to inspect local variables as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant