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

Known issues with Hermes debugging #1099

Closed
RedMickey opened this issue Sep 6, 2019 · 2 comments
Closed

Known issues with Hermes debugging #1099

RedMickey opened this issue Sep 6, 2019 · 2 comments
Labels
android external-report hermes known-issues Known issues for extension, most of them are external issues

Comments

@RedMickey
Copy link
Contributor

RedMickey commented Sep 6, 2019

The extension has experimental support for React Native Hermes debugging. At this moment we know about several issues related to Hermes debugging. Please see the list of known issues below.

The table of problems consists of two columns: first one illustrates the problem when debugging the app with Hermes enabled using prototype of the debugger in the extension, second one - when Chrome is used for debugging the app.

If you faced new issues with React Native Hermes debugging with React Native Tools, please send them to the commentaries section of this issue.

The list of issues

  1. The debugger doesn’t show Global, Closure variables. The debugger provides only Local variables (function scope). Google Chrome displays Global variables, but Locals aren't shown.
Debugging using VS Code RNT Hermes debugger prototype Debugging using Chrome Resolved
drawing drawing microsoft/vscode-chrome-debug-core#548
  1. The debugger doesn’t show value of numeric variables.
Debugging using VS Code RNT Hermes debugger prototype Debugging using Chrome Resolved
drawing drawing microsoft/vscode-chrome-debug-core#548
  1. The debugger shows additional VM_unknown calls in Call Stack

    The debugger displays all the calls as well as Google Chrome, but also adds unknown calls.
Debugging using VS Code RNT Hermes debugger prototype Debugging using Chrome Resolved
drawing drawing #1187

Logs for problems 1, 2, 3.

  1. The debugger doesn’t provide complete object data (For example, Date object, Map object - there is only an object name without internal data).
    If an object contains an array the debugger doesn't display the object's data.
    Google Chrome displays some objects correctly, but not all (e.g. Map object).
    The debugger doesn’t provide properties containing in “this” object.

See the issue Application crashes on debugging Map and Set objects.

Debugging using VS Code RNT Hermes debugger prototype Debugging using Chrome Resolved
drawing drawing
drawing drawing

Logs for problem 4 - 1 table row.
Logs for problem 4 - 2 table row.

  1. The debugger doesn’t show local variables, if there is any array definition in a handler function.

    The debugger remove local variables data only when it comes an array definition. Google Chrome displays array's data.

See the issue Runtime.callFunctionOn returns an empty value on debugging.

Debugging using VS Code RNT Hermes debugger prototype Debugging using Chrome Resolved
Before the array definition:
drawing
drawing microsoft/vscode-chrome-debug-core#548
After the array definition:
drawing
microsoft/vscode-chrome-debug-core#548

Logs for problem 5.

@RedMickey
Copy link
Contributor Author

This issue is out of date, please see the new one.

@Abuchtela
Copy link

Details

https://github.com//issues/1266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android external-report hermes known-issues Known issues for extension, most of them are external issues
Projects
None yet
Development

No branches or pull requests

3 participants