kablamo / VimDebug

Integrate your debugger with Vim. Currently supports Perl, Python, and Ruby. This code is very much in beta.
37 stars 7 forks source link

Perl debugger just hangs #20

Closed fschwach closed 13 years ago

fschwach commented 13 years ago

When I press F12 in a perl buffer I get the message "starting debugger..." but it just freezes up then and nothing else happens. Am I the only one with that issue? Any idea where I can start looking for the problem?

kablamo commented 13 years ago

Have you installed the Perl module IPC::Run and IO::Pty? Thats the most common problem by far.

If you have those installed, can you tell me more about your situation? Are you using the github build or the vim.sf.net build, source code, perl version, vim version, OS, ...etc.

fschwach commented 13 years ago

Yes, both of those Perl modules are installed. I downloaded the code from www.vim.org Version: 0.5

vim version: 7.1 OS: Debian 5.0.6 Perl: v5.8.8

vishalmoondhra commented 13 years ago

Hi,

I am having the same issue. I have been using this great plugin for a while now. I recently migrated to a new laptop, and have been unable to get this working.

Old setup (where it worked): Fedora core 12 Vim 7.3 Perl v5.10.0 for i386-linux-thread-multi

New setup (where it doesn't work): Fedora core 14 Vim 7.3 Perl v5.10.1 for x86_64-linux.

I checked, and I have both IPC::Run and IO::Pty installed. I downloaded the plugin from www.vim.org - version 0.5.

Thanks for your time, and thanks for a great plugin.

-Vishal.

vishalmoondhra commented 13 years ago

Found my issue.

Turns out that 'vdd' was not available in my path. I copied VimDebug/bin/vdd into a known location in my path, and the debugger started working again. This is odd since I did run the installation instructions, including 'sudo make install' when I installed this plugin on my new machine.

Hope this helps.

-Vishal.

kablamo commented 13 years ago

vishalmoondhra, glad you solved your problem and thanks for reporting it. I will add an error message for that situation.

fschwach, do you have vdd in your path? Whats the path for your perl binary? I'm afraid it must be in /usr/bin/perl for version .5.

The latest version in github uses '/usr/bin/env' to discover the path of the perl binary. You may want to try the latest version of VimDebug from github. But you will need to understand Dist::Zilla to be able to install it.

kablamo commented 13 years ago

Dist::Zilla is pretty simple though. Just type 'dzil install' to install. Or just 'dzil' for a help screen.

http://search.cpan.org/~rjbs/Dist-Zilla-4.200004/lib/Dist/Zilla.pm

fschwach commented 13 years ago

ok, now vdd is in the path and it works. I have a different Perl version in /usr/bin/perl than the one I'm actually using to run my code in the end, so I guess I will need to try and install the latest GitHub version of the code, but at least it's basically working now.Thanks for this great plugin!

kablamo commented 13 years ago

Good to hear. Thanks for reporting your issue. If you have any more problems let me know.

FYI, I suspect we will be doing a release in the coming weeks. Version .5 basically can only handle one file scripts I think. The latest GitHub version has much improved support for code that uses libraries or Moose. But even after this next release VimDebug will still be beta.

I just moved though, so things are on hold right now.

kablamo commented 13 years ago

I just pushed a fix for this issue to github. An error message is now shown if vdd is missing.

kablamo commented 13 years ago

https://github.com/kablamo/VimDebug/commit/b04b1bd5a0b848bb79e28aaa2cc3a74a8627db93

fschwach commented 13 years ago

That's great, thanks!