Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调试 #13

Open
GavinBirkhoff opened this issue Feb 18, 2024 · 0 comments
Open

调试 #13

GavinBirkhoff opened this issue Feb 18, 2024 · 0 comments

Comments

@GavinBirkhoff
Copy link
Owner

GavinBirkhoff commented Feb 18, 2024

第一种情况

# 下载当前项目的 umi.js
$curl http://127.0.0.1:8000/umi.js -O

# 增加想调试的内容,举例增加 "debug!!!" 弹窗
echo -e  '\n;alert("debug!!!");\n' >> umi.js
# 打开浏览器就能看到 alert 弹窗

# 退出调试,恢复到正常状态
$rm umi.js

第二种情况

如果需要在特定的域名环境调试或者验证当前的修改的代码,推荐使用 Chrome 插件 XSwitch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant