All Projects → Terry-Su → debug-react-source-code

Terry-Su / debug-react-source-code

Licence: GPL-3.0 license
搭建阅读React源码调试环境,支持所有React版本细分文件断点调试。当前最新React版本:18.1.0。 Create an environment for reading and debugging react source code, support debugging breakpoints subdivision files of all react versions. Latest version: 18.1.0.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to debug-react-source-code

Nodejs Nucleus Plus Internals
NodeJS源码分析-由浅入深解析架构以及运行原理
Stars: ✭ 157 (+9.03%)
Mutual labels:  source-code
Androidnote
Android study notes.
Stars: ✭ 2,700 (+1775%)
Mutual labels:  source-code
get-source
Fetch source-mapped sources. Peek by file, line, column. Node & browsers. Sync & async.
Stars: ✭ 26 (-81.94%)
Mutual labels:  source-code
Awesome Php Src
🚀 A curated list of awesome resources related to PHP source code
Stars: ✭ 163 (+13.19%)
Mutual labels:  source-code
Arcadecarphysics
Arcade Car Physics - Vehicle Simulation for Unity3D
Stars: ✭ 189 (+31.25%)
Mutual labels:  source-code
Just React
「React技术揭秘」 一本自顶向下的React源码分析书
Stars: ✭ 3,897 (+2606.25%)
Mutual labels:  source-code
Online School Management App Angular Firebase
Angular 11.0 Firebase App - Online School , Student Management App
Stars: ✭ 120 (-16.67%)
Mutual labels:  source-code
references-for-dotnet-developers
Sites, blogs, cursos, redes sociais e projetos de referências para desenvolvedores .NET
Stars: ✭ 329 (+128.47%)
Mutual labels:  source-code
Advancedandroid
Android 进阶
Stars: ✭ 2,446 (+1598.61%)
Mutual labels:  source-code
objc-runtime-CN
Objective-C Runtime Analysis (Objective-C运行时分析)
Stars: ✭ 28 (-80.56%)
Mutual labels:  source-code
Copyright Header
© Copyright Header is a utility to manipulate software licenses on source code.
Stars: ✭ 168 (+16.67%)
Mutual labels:  source-code
Jdk Source Analysis
JDK 源码分析
Stars: ✭ 186 (+29.17%)
Mutual labels:  source-code
Hotels server
酒店预订系统后台管理系统
Stars: ✭ 249 (+72.92%)
Mutual labels:  source-code
Androidsrc
Find Android sources
Stars: ✭ 158 (+9.72%)
Mutual labels:  source-code
jetpac-disassembly
JETPAC: annotated source code disassembly of this classic 8-bit game (1983, ZX Spectrum)
Stars: ✭ 36 (-75%)
Mutual labels:  source-code
Simpleweather
a simple weather app
Stars: ✭ 141 (-2.08%)
Mutual labels:  source-code
Mercury
Mercury is a hacking tool used to collect information and use the information to further hurt the target
Stars: ✭ 236 (+63.89%)
Mutual labels:  source-code
Some Pentesters SecurityResearchers RedTeamers
Some Pentesters, Security Researchers, Red Teamers which i learned from them a lot...
Stars: ✭ 60 (-58.33%)
Mutual labels:  source-code
GpuZen2
Sample code for the article 'Real-Time Layered Materials Compositing Using Spatial Clustering Encoding'
Stars: ✭ 17 (-88.19%)
Mutual labels:  source-code
Cookie-Clicker-Source-Code
Cookie Clicker source code for... educational purposes...
Stars: ✭ 74 (-48.61%)
Mutual labels:  source-code

English Version Click Here

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

快速使用

方法1: 线上调试

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

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

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

1 . 在Releases中选择要下载的版本。

版本列表(持续更新):

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版本断点调试细分文件”




Quick Start

Method 1: Debug Online

Visit Url:https://terry-su.github.io/debug-react-source-code/example/react-18.1.0

(Recommended)Method 2:Download Corresponding Files for Debugging Source Codes

The advantage is that you can modify the source code, such as adding comments to it. Usage Steps:

1 . Select version to download at Releases

Version list(Update continuously):

2 . Unzip compressed file,then open folder using vscodevscode need to install extension:Debugger for Chrome,for adding breakpoints on source codes in vscode.

3 . After installing dependencies, start service

npm install
npm start

4 . Add breakpoints on source codes, then just press F5 to start debugging

Directory Structure

Directory structure is:

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

notice index.js is the entry file for debugging.

How does this work

Maybe you need google translate.

“Create an environment for reading and debugging the React source code in a different way - support debugging breakpoints subdivision files of all react versions”

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].