1

我正在尝试将vdebug与 MacVim 和 xdebug 一起使用来调试代码。我通过自制软件安装了 MacVim 和 python,并安装了 xdebug 并与 MacGDBp 一起正常工作。

当我使用 F5 键在 vdebug 中收听并重新加载页面时(xdebug 远程自动启动已打开),我在 vdebug quickfix 窗口中收到 python 错误:

An error occured: <type 'exceptions.ImportError'>
Traceback (most recent call last):
  File "/Users/mikedfunk/dotfiles/.vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
    self.runner.run()
  File "/Users/mikedfunk/dotfiles/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
    self.open()
  File "/Users/mikedfunk/dotfiles/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 74, in open
    raise e
ImportError: No module named expat; use SimpleXMLTreeBuilder instead

我已经用谷歌搜索了一段时间,但找不到有效的解决方案。有任何想法吗?

4

1 回答 1

1

这对我有用!发布以防其他人有同样的问题:

https://stackoverflow.com/a/12697440/557215

在重新安装 MacVim 之前,它会暂时将 python 的 homebrew 版本链接到 mac 系统版本。现在 xdebug 工作!

于 2013-03-19T23:25:38.973 回答