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

调试工具增加localStorage开启方式 #11408

Open
aaronz0 opened this issue Dec 19, 2024 · 0 comments
Open

调试工具增加localStorage开启方式 #11408

aaronz0 opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@aaronz0
Copy link

aaronz0 commented Dec 19, 2024

是否关联于某个问题吗:

现有的两种开启调试方式:

  1. window.enableAMISDebug 在类似乾坤等沙箱环境无法在外部开启
  2. URL参数可能被一些重定向逻辑丢掉

预期的解决方案:

增加localStorage开启方式

localStorage.enableAMISDebug = true

在同一域名下,不受沙箱和跳转的影响

任何附加信息:

npm下载榜首debug包在浏览器里就是通过localStorage控制的
https://github.com/debug-js/debug?tab=readme-ov-file#browser-support

@aaronz0 aaronz0 added the enhancement New feature or request label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant