brookhong / DBGPavim

This is a plugin to enable php debug in VIM with Xdebug, with a new debug engine.
132 stars 19 forks source link

Error when debugging #33

Closed trongrg closed 9 years ago

trongrg commented 10 years ago

I tried the latest commit 75cf9b5cb46fe8f408085e84475d43012e6b62ac, and got this error:

Error detected while processing function <SNR>207_ExeDBGPavim:
line    2:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Volumes/Data/Users/trongtran/.yadr/vim/bundle/DBGPavim/plugin/dbgpavim.py", line 1227, in run
    self.handle_exception(ss)
  File "/Volumes/Data/Users/trongtran/.yadr/vim/bundle/DBGPavim/plugin/dbgpavim.py", line 1126, in handle_exception
    currentSession.close()
  File "/Volumes/Data/Users/trongtran/.yadr/vim/bundle/DBGPavim/plugin/dbgpavim.py", line 619, in close
    self.ui.destroy()
  File "/Volumes/Data/Users/trongtran/.yadr/vim/bundle/DBGPavim/plugin/dbgpavim.py", line 413, in destroy
    vim.command('q')
vim.error: Vim(python):Traceback (most recent call last):
E171: Missing :endif

I don't know much about python, so I couldn't figure out whats wrong with this.

Could you please have a look?

Thank you.

brookhong commented 10 years ago

I can not reproduce the issue with MacVim 7.4, what's version of your MacVim?

BTW: Clicking the close button of tab does not close the debugging session. The debugging session just be hidden.

For now, it's better to press f6 to close the debugging session, and the tab will be automatically closed.