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

Add configuration not working - react native tools #985

Closed
springcoil opened this issue Apr 23, 2019 · 6 comments
Closed

Add configuration not working - react native tools #985

springcoil opened this issue Apr 23, 2019 · 6 comments
Assignees

Comments

@springcoil
Copy link
Contributor

springcoil commented Apr 23, 2019

Issue Type: Bug

Hi, I wanted to use React-native debugger like this tutorial - https://github.com/Microsoft/vscode-react-native/blob/master/README.md#debugging-react-native-applications. However I'm running into problems getting it to work. I click on 'Add Configuration' in launch.json and nothing happens. I see no change. I expected that this would offer me some options. microsoft/vscode#63242 is a related issue I believe.

Extension version: 0.9.2
VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:22:55.268Z)
OS version: Darwin x64 18.5.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 2
Memory (System) 16.00GB (1.72GB free)
Process Argv
Screen Reader no
VM 0%
@springcoil springcoil changed the title Add configuration not working Add configuration not working - react native tools Apr 23, 2019
@ruslan-bikkinin
Copy link
Contributor

Hi @springcoil and thanks for reaching us. Is Add configurations button grayed out in your case?

@springcoil
Copy link
Contributor Author

Hi @ruslan-bikkinin no it's not greyed out. I've got a screenshot.
Screenshot 2019-04-23 13 41 55

@ruslan-bikkinin
Copy link
Contributor

Usually it should be gray when launch.json is malformed. In your case just add these lines to launch.json to make it work again:

{
    "version": "0.2.0",
    "configurations": [
    ]
}

@springcoil
Copy link
Contributor Author

Thanks so much. I'm happy with that resolution. Can I open a PR to just add this to the FAQs?

@ruslan-bikkinin
Copy link
Contributor

@springcoil I believe this is a regression in VS Code issue because Add configuration button supposed to be disabled in the past in cases like yours. I'd suggest you to let VS Code team know about it, as well, unless there is similar issue opened already.

@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?

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

4 participants