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

请问断点调试功能有实现吗? #21

Open
ZhangKejun opened this issue Apr 15, 2024 · 3 comments
Open

请问断点调试功能有实现吗? #21

ZhangKejun opened this issue Apr 15, 2024 · 3 comments

Comments

@ZhangKejun
Copy link

No description provided.

@Nice-PLQ
Copy link
Owner

断点调试功能暂无法实现

@ZhangKejun
Copy link
Author

ZhangKejun commented Apr 16, 2024 via email

@Nice-PLQ
Copy link
Owner

暂时没有,不过有个思路方向可以研究看看。目前来看,想要打断js代码的执行,只有generator这个可以做到。或许可以将源代码处理下,把它转成AST后,插入yield语句,然后可以调用next方法控制代码单步执行。

我没深入研究,有兴趣可以往这个方向探索性下

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

2 participants