使用VS Code调试React-Native程序

2025-06-19 09:09:13

本文介绍使用Visual Studio Code对React-Native程序进行调试的方法。

工具/原料

VS Code

React-Native

iOS Simulator

Genimotion Android Emulator

准备工作

1、下载并安装需要的元件sudo npm install -g eslint babel-eslinteslint-plugin-react

2、安装VS Code插件,包括:- React Native Tools- ESLint-Babel ES6/ES7

使用VS Code调试React-Native程序

2、选择调试环境。launch.json被自动创建。

使用VS Code调试React-Native程序使用VS Code调试React-Native程序
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢