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

No Debug Launch Configuration Options for react-native extension #2150

Closed
Chuk116 opened this issue May 22, 2024 · 9 comments
Closed

No Debug Launch Configuration Options for react-native extension #2150

Chuk116 opened this issue May 22, 2024 · 9 comments

Comments

@Chuk116
Copy link

Chuk116 commented May 22, 2024

          I am having a similar issue that I can't quite figure out. I have the react-native tools extension downloaded on VSCode but when I click on the Add Configuration button I don't see any options for React Native. Additionally, when I click on the "Show all automatic debug configurations" in the Run And Debug side panel, I see the "React Native" option like this: 
Screenshot 2024-05-22 at 5 01 52 PM However, when I click the React Native option the dropdown is empty like this: Screenshot 2024-05-22 at 5 02 22 PM I feel like I have tried every solution that I have found on the web for related issues but nothing has worked so far. Any ideas for other possible solutions?

Originally posted by @Chuk116 in #985 (comment)

@EzioLi01
Copy link
Collaborator

EzioLi01 commented May 23, 2024

Hey @Chuk116 , thanks for reaching us. Which version of vscode have you used? Actually I have no luck to repro this with the rn template. Please check extension runtime status in below page. BTW, can you try to add config in launch.json file manually?

Screenshot 2024-05-23 at 10 34 45

Could you please provide a repro demo to me for the investigation?

@EzioLi01
Copy link
Collaborator

Hey @Chuk116 , do you have any updates on this?

@Chuk116
Copy link
Author

Chuk116 commented May 28, 2024

Hi @EzioLi01 sorry for the late response. Here is the response to the questions that you had asked:

  1. I believe the version of vscode is 1.89.1. Here is a screenshot of the About VSCode page:
Screenshot 2024-05-28 at 11 00 14 AM
  1. I have tried adding the config manually but the debugger doesn't work as expected.

  2. I am not sure what instructions I can give you to be able to reproduce the issue. I didn't do anything special when downloading the RN extension. Here is a screenshot of the Runtime Status of the extension:

Screenshot 2024-05-28 at 11 11 11 AM

@EzioLi01
Copy link
Collaborator

Hey @Chuk116 , thanks for the details.
At your screenshot, your extension is not activated, this extension will be activated when vscode open a react-native project folder. If you don't have any specific demo, could you please try to create a sample project using npx react-native init testApp, and open it in vscode to check if extension can be activated?

@EzioLi01
Copy link
Collaborator

EzioLi01 commented Jun 5, 2024

Hey, do you have chance to check it?

@Chuk116
Copy link
Author

Chuk116 commented Jun 5, 2024

Yes sorry, I created the sample project but it doesn't seem to be activated within the sample project either:

Screenshot 2024-06-04 at 8 57 00 PM

@EzioLi01
Copy link
Collaborator

EzioLi01 commented Jun 5, 2024

Yes sorry, I created the sample project but it doesn't seem to be activated within the sample project either:

Screenshot 2024-06-04 at 8 57 00 PM

I still cannot repro it, could you please show me a full screenshot include your vscode file explorer or record a video for it? I will keep this issue opening, but I must say, it's hardly do any investigation if I cannot get some useful information. Thanks.

Also could you please try to manually create launch.json, add config as below, and start debugging to see if extension can be activated and start to work?

    "configurations": [
        {
            "name": "Debug iOS Hermes",
            "request": "launch",
            "type": "reactnativedirect",
            "cwd": "${workspaceFolder}",
            "platform": "ios"
        }
    ]
}

@EzioLi01
Copy link
Collaborator

Close this issue since no updates from customer currently, if any detail needs to update, please reopen this or create a new one. Thanks!

@lucassad
Copy link

I am also facing this issue, any fix?

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

No branches or pull requests

3 participants