Vscode-react-native: Add configuration not working - react native tools

Created on 23 Apr 2019  路  5Comments  路  Source: microsoft/vscode-react-native

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. https://github.com/Microsoft/vscode/issues/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%|


question resolved

Most helpful comment

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": [
    ]
}

All 5 comments

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

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

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": [
    ]
}

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevinnguy picture kevinnguy  路  3Comments

andreyleonardo picture andreyleonardo  路  3Comments

AlexandreLouisnard picture AlexandreLouisnard  路  3Comments

joshuaskelton picture joshuaskelton  路  6Comments

peterp picture peterp  路  4Comments