debug-time-machine-cli
v1.0.20
Published
π Debug Time Machine CLI - μμ μλνλ React λλ²κΉ λꡬ
Maintainers
Readme
debug-time-machine-cli
π Debug Time Machine CLI - μμ μλνλ React λλ²κΉ λꡬ
μ€μΉ
npm install -g debug-time-machine-cli
# λλ
npx debug-time-machine-cliμ¬μ©λ²
μλ μμ (κΆμ₯)
# React μ±κ³Ό ν¨κ» Debug Time Machineμ μλμΌλ‘ μμ
debug-time-machine start-with-app "npm start"
debug-time-machine start-with-app "yarn dev"
debug-time-machine start-with-app "pnpm dev"μλμΌλ‘ μ€νλλ κ²λ€:
- β λ°±μλ μλ² (ν¬νΈ 4000)
- β Debug UI (ν¬νΈ 8080)
- β λΈλΌμ°μ μμ Debug UI μ΄κΈ°
- β μ¬μ©μ React μ±
κ°λ³ λͺ λ Ήμ΄
# Debug Time Machine μλ²λ§ μμ
debug-time-machine start --port 4000
# νλ‘μ νΈ μ΄κΈ°ν
debug-time-machine init --name my-app --template react
# μν κΈ°λ‘
debug-time-machine record --output session.json --duration 300
# κΈ°λ‘ μ¬μ
debug-time-machine replay --input session.json --speed 2λ¨μΆ λͺ λ Ήμ΄
# dtm λ³μΉ μ¬μ© κ°λ₯
dtm start-with-app "npm start"
dtm start
dtm initλͺ λ Ήμ΄ μ΅μ
start-with-app
debug-time-machine start-with-app <command> [options]
Options:
--no-browser Debug UIλ₯Ό λΈλΌμ°μ μμ μλμΌλ‘ μ΄μ§ μμstart
debug-time-machine start [options]
Options:
-p, --port <port> ν¬νΈ λ²νΈ (κΈ°λ³Έκ°: 4000)
-h, --host <host> νΈμ€νΈ μ£Όμ (κΈ°λ³Έκ°: localhost)init
debug-time-machine init [options]
Options:
-n, --name <name> νλ‘μ νΈ μ΄λ¦
-t, --template <template> ν
νλ¦Ώ (react, node, express)μμ
Create React App
debug-time-machine start-with-app "react-scripts start"Vite
debug-time-machine start-with-app "vite --port 3000"Next.js
debug-time-machine start-with-app "next dev"package.json μ€ν¬λ¦½νΈ
{
"scripts": {
"start": "react-scripts start",
"debug": "debug-time-machine start-with-app 'react-scripts start'"
}
}κ·Έλ¬λ©΄ λ€μκ³Ό κ°μ΄ μ¬μ©ν μ μμ΅λλ€:
npm run debug