GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AttemptWeb/debug-react-source-code: 搭建阅读React源码调试环境,支持所有React版本细分文件断点调试。当前最新React版本:17.0.1

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
PLACE-REACT-SOURCE-CODE-HERE
PLACE-REACT-SOURCE-CODE-HERE
 
 
dependencies
dependencies
 
 
example/react-16.13.1
example/react-16.13.1
 
 
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
index.js
index.js
 
 
package.json
package.json
 
 
rollup-plugin-add-path-info-annoation-for-each-file.js
rollup-plugin-add-path-info-annoation-for-each-file.js
 
 
shared.js
shared.js
 
 

Repository files navigation

如果这个项目对你有帮助,欢迎点个Star支持作者!

快速使用

方法1: 线上调试

访问地址:https://terry-su.github.io/debug-react-source-code/example/react-16.13.1

(推荐)方法2:下载对应直接调试源码文件

优势是可修改源码,比如在源码中添加注释。 使用步骤:

1 . 选择要调试的React版本对应分支,然后点击下载压缩包。

版本列表(持续更新):

  • debug-react-17.0.1
  • debug-react-17.0.0
  • debug-react-16.14.0
  • debug-react-16.13.1
  • debug-react-16.6.0

2 . 将压缩包解压后,用vscode打开该文件夹。vscode需安装Debugger for Chrome插件,用于在vscode对源码添加断点

3 . 安装依赖后,开启服务

npm install
npm start

4 . 在源码中添加断点,按F5启动调试即可

目录结构

目录结构为:

/react.development/
/react-dom.development/
/babel.js
/dependency-main.html
/dependency-react.html
/dependency-react-dom.html
/index.html
/index.js

其中,index.js即为调试入口文件。

实现原理

“另辟蹊径搭建阅读React源码调试环境-支持所有React版本断点调试细分文件”

About

搭建阅读React源码调试环境,支持所有React版本细分文件断点调试。当前最新React版本:17.0.1

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.