opened 10:17AM - 05 Feb 23 UTC
closed 05:05PM - 07 Feb 23 UTC
# System Info :computer:
- OS: darwin
- Emacs: 28.2
- Spacemacs: 0.999.0
- S…pacemacs branch: develop (rev. 5b3089fbb)
- Graphic display: t
- Running in daemon: nil
- Distribution: spacemacs
- Editing style: vim
- Completion: ivy
# 问题
如题
# Debug
经过一个一个版本回退发现:在版本:https://github.com/manateelazycat/popweb/commit/738c4c9ae140c7b3c8ede9f249c405732574f76f
之后的都无法正常工作。

甚至修复了 https://github.com/manateelazycat/popweb/commit/738c4c9ae140c7b3c8ede9f249c405732574f76f 引入 bug 的https://github.com/manateelazycat/popweb/commit/147ba530c4d8a7260930d44c17dd34b71b22c757 版本也是无法正常工作:

直至回退到 https://github.com/manateelazycat/popweb/commit/8524a1f7ec6e28f951beefc99728ffae141e42aa 版本才能正常工作。

将这段代码:https://github.com/manateelazycat/popweb/blob/f023f4550f0d199959544e6074331a1ef57a9656/popweb.py#L210-L215
改成如下,注意第 210,215 行:
```
self.webview = QWebEngineView()
self.web_page = BrowserPage()
self.webview.setPage(self.web_page)
self.web_page.setBackgroundColor(QColor(get_emacs_func_result("popweb-get-theme-background", [])))
# self.webview.shown.connect(self.show_handler)
```
可以正常。
我猜想是新增加的调试器功能导致在 MacOS 上无法正常工作。但是我不懂 PyQT 不知道如何修改。