You are not logged in.

#1 2014-09-15 14:14:34

sant527
Member
Registered: 2009-06-21
Posts: 273

Vim - vdebug not working.

I am using vdebug plugin in vim.

I am successfully using and debugging php since 6 months . I didnt do any update to my computer.

I am using KDE. I use terminator as terminal emulator

DEBUGGER WORKING CASE :

Now the debugger works if i follow the steps:

1) open "terminator"
2) cd to the directory of the php file
3) then open the file in vim

vim index.php

4) then press F5 inside vim and then refresh the browser.
5) the debugger starts working.

DEBUGGER NOT WORKING CASE:

1) open "terminator"
2) cd to the directory of the php file
3) then open the file using command: 

 terminator -d -e "vim index.php"

. Note: See at the end of post why i use another terminator command.
4) now another terminator window opens with  index.php opened in vim.
4) then press F5 inside vim and then refresh the browser.
5) the debugger does start.

it keeps showing 

 Waiting for a connection (Ctrl-C to cancel, this message will self-destruct in 20 seconds...) 

so after some time 40 sec, if i type enter it shows the output1 . Later I again closed the terminal and run all the steps except this time type ctrl + c instead of enter, it shows output2

OUTPUT1

    Waiting for a connection (Ctrl-C to cancel, this message will self-destruct in  20  seconds...)
    An error occured: <class 'vim.error'>
    Traceback (most recent call last):
      File "/home/simha/.vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
        self.runner.run()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
        self.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 47, in open
        self.ui.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 75, in open
        raise e
    error: Vim(new):E325: ATTENTION

Output2

    Error detected while processing :
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/simha/.vim/bundle/vdebug/plugin/python/start_vdebug.py", line 31, in run
        self.runner.run()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 160, in run
        self.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/runner.py", line 47, in open
        self.ui.open()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 52, in open
        self.watchwin.create()
      File "/home/simha/.vim/bundle/vdebug/plugin/python/vdebug/ui/vimui.py", line 337, in create
        vim.command('silent ' + self.open_cmd + ' ' + self.name)
    KeyboardInterrupt

Note: I use the command terminator -d -e "vim index.php" because i created a custom command called vim_term = terminator -d -e "vim %u%" & in kde using "Menu Editor" . So in dolphin i can right click on a php file and open with "vim_term" to directly open the file in vim in terminator. This will save time.

The problem is not with:
1) I strongly feel that the problem is not with vdebug because it working in one case.
2) Its also not the problem with terminator program. Also i tried with konsole. using  konsole --hold -e vim -D index.php . the debugger does not work.

The problem is with X issue. because of which is not able to start debug. Can some one help me. Some problem is happening  when i open the file with custom using vim_term

As i mentioned last 6 months i was using the custom command and the debugger was working. But suddenlt yesterday onwards its not working. Yesterday to shutdown my computer i kept pressing the power button instead of the shutdown.

Offline

Board footer

Powered by FluxBB