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

Could not read source map while debug React Native app #1268

Closed
JiglioNero opened this issue May 13, 2022 · 10 comments
Closed

Could not read source map while debug React Native app #1268

JiglioNero opened this issue May 13, 2022 · 10 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@JiglioNero
Copy link

JiglioNero commented May 13, 2022

Describe the bug
Hello, I am a member of the React Native Tools extension development team for VSCode. After updating the vscode-js-debug extension to version 1.67, which is used by our debugging extension, the following error began to appear:

image

This error occurs on any change in code during debugging process.

To Reproduce

  1. Install React Native Tools extension in your VSCode
  2. Configure your environment for React Native development as shown in documentation
  3. Initialize new React Native project via command react-native init rnProject
  4. Open project folder via VSCode and run "Debug Android" debug config
{
            "name": "Debug Android",
            "cwd": "${workspaceFolder}",
            "type": "reactnative",
            "request": "launch",
            "platform": "android",
}
  1. After the application starts, switch to debug mode via devMenu
  2. After the extension is attached to the application, change any part of the application code

Log File

vscode-debugadapter-ad81bbfe.json.gz

VS Code Version: 1.67.1

@connor4312
Copy link
Member

Can you see if this is fixed on the nightly build of the debugger?

@JiglioNero
Copy link
Author

No, its reproduce on today's nightly build too

@cesarak
Copy link

cesarak commented May 17, 2022

Same here, but I'm facing this issue trying to "Attach Android application" too

Here is my config
{ "name": "Attach Android application", "request": "attach", "type": "reactnativedirect", "cwd": "${workspaceFolder}" },

@connor4312
Copy link
Member

@JiglioNero hm, interesting. Could you take a trace log from the latest nightly build so I can diagnose further?

@JiglioNero
Copy link
Author

Yes, sure - vscode-debugadapter-b2b2c743.json.gz

@connor4312
Copy link
Member

It looks like you're still using the stable build. Make sure that you did steps 1 and 2 in the instructions to switch to the nightly build: https://github.com/microsoft/vscode-js-debug#nightly-extension

@JiglioNero
Copy link
Author

This logs for vscode-js-debug nightly version v2022.5.1817

@connor4312
Copy link
Member

connor4312 commented May 19, 2022

Hm, the adapter version in that log is still 1.67.2. After the built-in version of the extension is disabled, you may need to reload the window.

@JiglioNero
Copy link
Author

Hi, this was my mistake, sorry. This error not reproducing now with the nightly build

@connor4312
Copy link
Member

Thanks for confirming. This duplicates microsoft/vscode#148864

@connor4312 connor4312 closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2022
@connor4312 connor4312 added *duplicate Issue identified as a duplicate of another issue(s) and removed bug Issue identified by VS Code Team member as probable bug labels May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants