DEV Community

Discussion on: Debug React-Native with VSCode

Collapse
 
jon007 profile image
Jonathan Moore

what does the .babelrc look like after adding:
{
"presets": [ "react-native" ],
"sourceMaps": true
}
?
I couldn't get any version of this to work on either android or ios, I'm not sure whether I'm missing something or whether the react-native versions are just ahead of the VSCode support at the moment..

Collapse
 
kayis profile image
K

Hm, I haven't used this since I wrote this article.

Could be that RN changed too much since then :/

Collapse
 
jon007 profile image
Jonathan Moore • Edited

Could be that RN changed too much since then

probably yes

I haven't used this since I wrote this article.

That itself is perhaps an interesting feedback on the usefulness of debugging in VSCode..

Xamarin debugging in Visual Studio seems to work well but given that react-native is still changing fast I'd stick to the Chrome debugger and react-devtools as more likely to avoid versioning issues.

Thread Thread
 
kayis profile image
K

Good advice.