Breakpoints only work for a while when direct debugging the Hermes JS engine #13312
Labels
Area: Debug Infrastructure
Area: Developer Experience
Area: JavaScript Engine
bug
Workstream: Developer Experience
Support the RNW developer inner-loop.
Milestone
Problem Description
We as an SAP development team want to upgrade React Native Windows from 0.71.37 to 0.71.46. After we’ve done, we faced Hermes direct debugging issue:
Steps To Reproduce
Create a 0.71.46 React Native Windows app with C# and Hermes usage then run it in Debug:
npx [email protected] init "RNW_71_46" --version "0.71.19"
cd RNW_71_46
npx react-native-windows-init --overwrite --version "0.71.46" --language "cs" --useHermes
npx react-native run-windows
Enable direct debugging through developer menu
Direct debug RNW app using Hermes JS engine with VS Code (1.89.1) using the React Native Tools extension (v1.13.0), according to https://github.com/microsoft/react-native-windows-samples/blob/main/docs/debugging-javascript.md#using-visual-studio-code-with-the-react-native-tools-1
Another variant for this issue is when the execution stops at non-existent breakpoints that we removed earlier:
RNW 0.71.46 introduced 0.1.21 version of Microsoft.JavaScript.Hermes NuGet package: https://www.nuget.org/packages/Microsoft.JavaScript.Hermes/0.1.21
Expected Results
We need debugging experience like we had before using RNW 0.71.37 which includes ReactNative.Hermes.Windows NuGet package: https://www.nuget.org/packages/ReactNative.Hermes.Windows/
CLI version
10.2.7
Environment
Community Modules
Target Platform Version
10.0.19041
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response
The text was updated successfully, but these errors were encountered: