question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'NoneType' object has no attribute 'step_into' with Python 3 support

See original GitHub issue

Trying out v2-integration to get python 3 support, I can get the debugger to run and break, but as soon as I try to step, I get

'NoneType' object has no attribute 'step_into'

More details:

Vdebug will wait for a connection in the background Found connection, starting debugger Debugging session has ended Vdebug will wait for a connection in the background An error occured: <class ‘AttributeError’>^@Traceback (most recent call last):^@ File “/home/letharion/.vim/pythonx/vdebug/event.py”, line 524, in dispatch_event^@ Dispatcher.eventsname.run(*args)^@ File “/home/letharion/.vim/pythonx/vdebug/event.py”, line 331, in run^@ res = self.api.step_into()^@AttributeError: ‘NoneType’ object has no attribute ‘step_into’

It’s also interesting to note that when the debugger starts and the debuggerwatcher opens, it says Status: listening Listening on: 9000 Not connected

I don’t have a working setup with older versions anymore, but I don’t think it should say “Not connected” once those splits open up?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
letharioncommented, Mar 6, 2018

@BlackIkeEagle Today I started fresh with a new clone of vdebug, switched to v2-integration, and copied the plugin directory into my ~/.vim, I’m on e37e43509778d167af139b9879d329fdb944abbc

I have a PHP-based API, running under apache. I hit F10, get visual confirmation on breakpoint, F5, and get Vdebug will wait for a connection in the background. When curl hits the API, initially, nothing happens. The request doesn’t finish, but neither does vim appear to react. When I hit F5 again, I get “Found connection, starting debugger Debugging session has ended Vdebug will wait for a connection in the background” The 4 splits open up though, so it looks like I’m in the debugger.

Status is now “listening”, and I get a “Vdebug will wait for a connection in the background” message. The next curl request is patiently waiting for a response, so it appears a connection has been established. Trying F2, I now get

“An error occured: <class ‘AttributeError’>^@Traceback (most recent call last):^@ File “/home/letharion/.vim/pythonx/vdebug/event.py”, line 524, in dispatch_event^@ Dispatcher.events[name](self.__session_han dler).run(*args)^@ File “/home/letharion/.vim/pythonx/vdebug/event.py”, line 322, in run^@ res = self.api.step_over()^@AttributeError: ‘NoneType’ object has no attribute ‘step_over’ Found connection, starting debugger Debugging session has ended Vdebug will wait for a connection in the background”

The next curl request finishes right away, so I send another one, which ends up waiting. Trying F4 now, I get

“An error occured: <class ‘AttributeError’>^@Traceback (most recent call last):^@ File “/home/letharion/.vim/pythonx/vdebug/event.py”, line 524, in dispatch_event^@ Dispatcher.events[name](self.__session_han dler).run(*args)^@ File “/home/letharion/.vim/pythonx/vdebug/event.py”, line 340, in run^@ res = self.api.step_out()^@AttributeError: ‘NoneType’ object has no attribute ‘step_out’ Found connection, starting debugger Debugging session has ended Vdebug will wait for a connection in the background”

So I think the same issue is still present in the latest version of v2-integration.

0reactions
jimafiskcommented, Aug 31, 2018

It doesn’t work consistently for me, but when it does work these are the steps:

  1. Set the breakpoint with <kbd>F10</kbd> then start the debugger with <kbd>F5</kbd>
  2. Go to the browser and refresh the page (this will finish and not continue refreshing)
  3. Go back to the editor and see that the debugger windows have popped up but the DebuggerStatus says “Not connected”
  4. Press <kbd>F7</kbd> to detach (the 'NoneType' object has no attribute 'detach' errors will appear)
  5. Press any key to continue and Found connection, starting debugger message appears
  6. Press any key again and then you can continue with a normal debugging session (note your browser will not still be reloading)

Also possibly related: https://github.com/vim-vdebug/vdebug/issues/90

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'NoneType' object has no attribute 'contents ...
I am using IDLE version3.5.2 on Mac OS X El Capitan v 10.11.6(15G31) I installed Python 3.5.2 through homebrew. Here is my IDLE3...
Read more >
Attribute error - requiring help - Discussions on Python.org
AttributeError: 'NoneType' object has no attribute 'GetDataType'. Could anybody provide me with some help on how to fix this please?
Read more >
ERROR: 'NoneType' object has no attribute 'run_sack'
Hi, When I update the system, the package list is not displayed with the following error. ERROR: 'NoneType' object has no attribute ......
Read more >
AttributeError: 'NoneType' object has no attribute 'AsValueString
Attribute errors in Python are generally raised when you try to access or call an attribute that a particular object type doesn't possess....
Read more >
'NoneType' object has no attribute '_inc_path' - Google Groups
'NoneType' object has no attribute '_inc_path' ... Exception Location: /home/vagrant/.virtualenvs/skiftio/lib/python3.4/site-packages ... to Wagtail support.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found