Open gabor-seres-sap opened 4 weeks ago
We're tracking issues with Hermes debugging here: https://github.com/microsoft/react-native-windows/issues/12982 I'll add this to the tracking list. You're on a version that's outside the support window, although for this issue in particular it may exist on latest (0.74).
Hey @chrisglein, I was also able to reproduce the issue with 0.74.8
"dependencies": {
"react": "18.2.0",
"react-native": "0.74.1",
"react-native-windows": "0.74.8"
}
I assume that's because the same 0.1.21 version of Microsoft.JavaScript.Hermes NuGet package belongs to both RNW versions: https://www.nuget.org/packages/Microsoft.JavaScript.Hermes/0.1.21
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
npx react-native@0.71.19 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