Giter Club home page Giter Club logo

vim-xdebug's People

Contributors

k-phoen avatar ludovicpelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vim-xdebug's Issues

NULL result without error in PyObject_Call

Sorry, I'm not a python developer, and I get this error on FC17, python 2.7.3, XDEBUG 2.2.0 , Vim 7.3.556, Php 5.4.4

(<type 'exceptions.SystemError'>, SystemError('NULL result without error in PyObject_Call',), <traceback object at 0x281ab90>)
File "/home/ultrizec/.vim/plugin/debugger.py", line 1079, in debugger_run
debugger.run()
File "/home/ultrizec/.vim/plugin/debugger.py", line 929, in run
self.protocol.accept()
File "/home/ultrizec/.vim/plugin/debugger.py", line 552, in accept
print 'waiting for a new connection on port '+str(self.port)+' for 5 seconds...'

Any thoughts?

  • EDIT -

This is what my phython is loading:
[ultrizec@sparknd plugin]$ python -v

installing zipimport hook

import zipimport # builtin

installed zipimport hook

/usr/lib64/python2.7/site.pyc matches /usr/lib64/python2.7/site.py

import site # precompiled from /usr/lib64/python2.7/site.pyc

/usr/lib64/python2.7/os.pyc matches /usr/lib64/python2.7/os.py

import os # precompiled from /usr/lib64/python2.7/os.pyc
import errno # builtin
import posix # builtin

/usr/lib64/python2.7/posixpath.pyc matches /usr/lib64/python2.7/posixpath.py

import posixpath # precompiled from /usr/lib64/python2.7/posixpath.pyc

/usr/lib64/python2.7/stat.pyc matches /usr/lib64/python2.7/stat.py

import stat # precompiled from /usr/lib64/python2.7/stat.pyc

/usr/lib64/python2.7/genericpath.pyc matches /usr/lib64/python2.7/genericpath.py

import genericpath # precompiled from /usr/lib64/python2.7/genericpath.pyc

/usr/lib64/python2.7/warnings.pyc matches /usr/lib64/python2.7/warnings.py

import warnings # precompiled from /usr/lib64/python2.7/warnings.pyc

/usr/lib64/python2.7/linecache.pyc matches /usr/lib64/python2.7/linecache.py

import linecache # precompiled from /usr/lib64/python2.7/linecache.pyc

/usr/lib64/python2.7/types.pyc matches /usr/lib64/python2.7/types.py

import types # precompiled from /usr/lib64/python2.7/types.pyc

/usr/lib64/python2.7/UserDict.pyc matches /usr/lib64/python2.7/UserDict.py

import UserDict # precompiled from /usr/lib64/python2.7/UserDict.pyc

/usr/lib64/python2.7/_abcoll.pyc matches /usr/lib64/python2.7/_abcoll.py

import _abcoll # precompiled from /usr/lib64/python2.7/_abcoll.pyc

/usr/lib64/python2.7/abc.pyc matches /usr/lib64/python2.7/abc.py

import abc # precompiled from /usr/lib64/python2.7/abc.pyc

/usr/lib64/python2.7/_weakrefset.pyc matches /usr/lib64/python2.7/_weakrefset.py

import _weakrefset # precompiled from /usr/lib64/python2.7/_weakrefset.pyc
import _weakref # builtin

/usr/lib64/python2.7/copy_reg.pyc matches /usr/lib64/python2.7/copy_reg.py

import copy_reg # precompiled from /usr/lib64/python2.7/copy_reg.pyc

/usr/lib64/python2.7/traceback.pyc matches /usr/lib64/python2.7/traceback.py

import traceback # precompiled from /usr/lib64/python2.7/traceback.pyc

/usr/lib64/python2.7/sysconfig.pyc matches /usr/lib64/python2.7/sysconfig.py

import sysconfig # precompiled from /usr/lib64/python2.7/sysconfig.pyc

/usr/lib64/python2.7/re.pyc matches /usr/lib64/python2.7/re.py

import re # precompiled from /usr/lib64/python2.7/re.pyc

/usr/lib64/python2.7/sre_compile.pyc matches /usr/lib64/python2.7/sre_compile.py

import sre_compile # precompiled from /usr/lib64/python2.7/sre_compile.pyc
import _sre # builtin

/usr/lib64/python2.7/sre_parse.pyc matches /usr/lib64/python2.7/sre_parse.py

import sre_parse # precompiled from /usr/lib64/python2.7/sre_parse.pyc

/usr/lib64/python2.7/sre_constants.pyc matches /usr/lib64/python2.7/sre_constants.py

import sre_constants # precompiled from /usr/lib64/python2.7/sre_constants.pyc
import encodings # directory /usr/lib64/python2.7/encodings

/usr/lib64/python2.7/encodings/init.pyc matches /usr/lib64/python2.7/encodings/init.py

import encodings # precompiled from /usr/lib64/python2.7/encodings/init.pyc

/usr/lib64/python2.7/codecs.pyc matches /usr/lib64/python2.7/codecs.py

import codecs # precompiled from /usr/lib64/python2.7/codecs.pyc
import _codecs # builtin

/usr/lib64/python2.7/encodings/aliases.pyc matches /usr/lib64/python2.7/encodings/aliases.py

import encodings.aliases # precompiled from /usr/lib64/python2.7/encodings/aliases.pyc

/usr/lib64/python2.7/encodings/utf_8.pyc matches /usr/lib64/python2.7/encodings/utf_8.py

import encodings.utf_8 # precompiled from /usr/lib64/python2.7/encodings/utf_8.pyc
Python 2.7.3 (default, Jul 24 2012, 10:05:38)
[GCC 4.7.0 20120507 (Red Hat 4.7.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
dlopen("/usr/lib64/python2.7/lib-dynload/readline.so", 2);
import readline # dynamically loaded from /usr/lib64/python2.7/lib-dynload/readline.so

Just to know the value of a variable using xdebug in vim

Hi,

I'm new to debugging using xdebug, so for checking the value of a variable with your plugin I think these are the steps:

  • Press F5 in vim
  • Press F5 in browser
  • Press F4 in vim
  • Move the cursor to the variable
  • Press F12 to check the value of the variable

It works ok, but for me these are too much steps just to avoid the typical var_dump($variable);die; line.

Is there anything am I doing wrong? is there any other quicker way to check the value of a variable?

Javi

Python code

Hi,

Cleaning a bit the Python code (the style and the code itself) could be a good idea.
Checking the compatibility with Python3 could also be nice.

What do you think about it?

I can't create a breakpoint after exiting

Hi,

after finishing your plugin pressing F6, I try to create another breakpoint with : Bp but I doesn't create it..I have to do again :Bp to create it..any idea? any workaround?

I'm using Ubuntu 12.04/XFCE and Vim 7.3.429

Javi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.