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.

No option with key background_listener

See original GitHub issue

I’m not sure when the last time I used xdebug was (probably a few months ago), but at some point something broke:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/james/.vim/plugged/vdebug/python3/vdebug/debugger_interface.py", line 47, in run
    self.session_handler.run()
  File "/home/james/.vim/plugged/vdebug/python3/vdebug/session.py", line 65, in run
    self.listen()
  File "/home/james/.vim/plugged/vdebug/python3/vdebug/session.py", line 42, in listen
    self.start_listener()
  File "/home/james/.vim/plugged/vdebug/python3/vdebug/session.py", line 45, in start_listener
    self.listener = listener.Listener.create()
  File "/home/james/.vim/plugged/vdebug/python3/vdebug/listener.py", line 12, in create
    if opts.Options.get('background_listener', int):
  File "/home/james/.vim/plugged/vdebug/python3/vdebug/opts.py", line 31, in get
    raise OptionsError("No option with key '%s'" % name)
vdebug.opts.OptionsError: No option with key 'background_listener'

Vim 8.1 Arch linux (up to date) Python 3.7 PHP 7.2.12

vimrc settings:

let g:vdebug_options = {"break_on_open": 0}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
JulesFaucherrecommented, Jan 7, 2021

Hello, I have the exact same issue but restarting my computer doesn’t work I am using vdebug to debug php with xdebug When I run :VdebugStart a first time I get No option with key 'autostart' but if I run it again I always get No option with key 'background_listener'

Here is my config :

NVIM v0.5.0-dev+1007-g9223d1450 Python 3.9.1 Ubuntu 20.04.1 LTS PHP 7.4.13 (cli) (built: Nov 28 2020 06:24:59) ( NTS ) Copyright © The PHP Group Zend Engine v3.4.0, Copyright © Zend Technologies with Zend OPcache v7.4.13, Copyright ©, by Zend Technologies with Xdebug v3.0.2, Copyright © 2002-2021, by Derick Rethans

I have been able to reproduce the problem with a minimalistic .vim/init.vim :

call plug#begin('~/.config/vim/plugins')

Plug 'vim-vdebug/vdebug'

call plug#end()

let g:python_host_prog = "/path/to/python2"
let g:python3_host_prog = "/path/to/python3"

let g:vdebug_options = {
      \   'port': 9000,
      \ }

Maybe you want me to create an other issue

0reactions
BlackIkeEaglecommented, Nov 8, 2018

Great @FatBoyXPC that makes it easy 😀

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to avoid receiving listener for background activity when ...
I would like to know how to solve a problem I've got. Camera activity is running, and there's a dialog which is generated...
Read more >
Manage events with background scripts - Chrome Developers
Effective background scripts stay dormant until an event they are listening for fires, react with specified instructions, then unload.
Read more >
Pushing Background Updates to Your App - Apple Developer
Deliver notifications that wake your app and update it in the background.
Read more >
Background scripts - Mozilla - MDN Web Docs
In your extension's manifest.json file, change the persistent property of "background" key to false for your script or page. " ...
Read more >
Buttons - Android Developers
Using an OnClickListener. Styling Your Button. Borderless button; Custom background. A button consists of text or an icon (or both text and ...
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