jaredly / vim-debug

A plugin for VIM that creates an Integrated Debugging Environment :) Currently works with PHP and Python
http://jaredforsyth.com/projects/vim-debug
MIT License
284 stars 28 forks source link

Error on Dbg . #22

Closed c0ffeeartc closed 10 years ago

c0ffeeartc commented 10 years ago

vim-debug installation didn't went well for me on Win8 x64 with python2.7.5 x64 (with x86 extra) After following instructions scripts echoed that finished successfully. Vim couldn't find vim_debug so I added "D:\Python27\64\Lib\site-packages" to its sys.path.

As result :Dbg . prints these messages:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Python27\64\Lib\site-packages\vim_debug\commands.py", line 19, in debugger_cmd
return start(*shlex.split(plain))
  File "D:\Python27\64\Lib\site-packages\vim_debug\commands.py", line 88, in start
debugger.start_py(fname)
  File "D:\Python27\64\Lib\site-packages\vim_debug\new_debugger.py", line 105, in start_py
subprocess.Popen(('pydbgp.py', '-d', 'localhost:9000', fname), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "D:\Python27\x86\Lib\subprocess.py", line 711, in __init__ 
errread, errwrite)
  File "D:\Python27\x86\Lib\subprocess.py", line 948, in _execute_child
startupinfo)
WindowsError: [Error 193] %1 is not a valid Win32 application

If it's a known issue please help!

jaredly commented 10 years ago

Oh sorry! I haven't yet pushed the new version that has windows support, because I haven't tested it myself yet. @escher9 was kind enough to submit a patch that worked for him. Could you try cloning the repository and see if that works? This is his patch https://github.com/jaredly/vim-debug/pull/21.

You should be able to just

git clone https://github.com/jaredly/vim-debug
cd vim-debug
python setup.py install
c0ffeeartc commented 10 years ago

It worked, thank you.