728x90
리액트 네이티브 ExpoGo 앱을 사용한다는 전제로 디버깅 하는 방법입니다.
먼저 터미널에서 디버깅 툴을 설치해줍니다.(https://www.npmjs.com/package/react-devtools)
//전역 설치
npm install -g react-devtools
//종속성 설치
npm install --dev react-devtools
터미널에서 npm start로 프로젝트를 실행해줍니다.
npm start
새로운 터미널을 하나 더 추가로 열어서 디버깅 툴 명령어를 실행합니다.(기존에 열었던 터미널은 서버 기동용으로 사용해야하기 때문에 꼭 새로운 터미널을 추가해주세요.)
react-devtools
ExpoGo 앱을 통해서 프로젝트를 클릭하면 자동으로 디버킹 툴이 활성화됩니다.
참조 : Expo 문서 도구들(https://docs.expo.dev/debugging/tools/#developer-menu)
728x90
'리액트네이티브' 카테고리의 다른 글
React Native Expo publish로 외부에서 사용할 테스트 QR코드 페이지 만들기 (0) | 2023.05.17 |
---|---|
React Naive Expo Some dependencies are incompatible with the installed expo version (0) | 2023.05.17 |
React Native Expo 프로젝트 실행방법 (0) | 2023.05.09 |
React Native Expo 웹에서 디버깅 방법 (0) | 2023.05.08 |
React Native Expo 개발 환경설정 (0) | 2023.05.01 |