Skip to content

Xdebug 3 support #497

Open
Open

Description

@cprn

Hi. I updated xdebug from 2.9.8 to 3.0.2 and it started giving this error on almost every step, sometimes straight away when I start debugging:

- [ERROR] {Thu 14 2021 17:05:28} An error occured: <class 'UnicodeDecodeError'>
Traceback (most recent call last):
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/event.py", line 784, in dispatch_event
    Dispatcher.events[name](self.__session_handler).run(*args)
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/event.py", line 660, in run
    self.ui.windows.watch().accept_renderer(rend)
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/ui/vimui.py", line 619, in accept_renderer
    self.write(renderer.render())
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/ui/vimui.py", line 910, in render
    properties = self.response.get_context()
  File "/home/user/.vim/plugged/vdebug/python3/vdebug/dbgp.py", line 125, in get_context
    self.create_properties(ContextProperty(c))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 1023: unexpected end of data

I'm trying to prepare a minimal example that triggers it but nothing "simple" seems to be working so I decided to ask - is this a known issue? The error doesn't prevent following the code step by step but the variable context is empty and pressing <F11> triggers same error again.

Activity

  1. vlada-dudr commented on Sep 20, 2022

    @vlada-dudr

    It can be easy reproduced by reading binary file content into variable.

  2. akabakass commented on Nov 3, 2022

    @akabakass

    got the same error here, thus not in the same position or byte.
    i've done several things before it broke (switching to php-fpm) and am not sure which one is at fault, but it was running on xdebug3 for me before. here is the tracecall:

    - [ERROR] {jeu. 03 2022 16:27:42} An error occured: <class 'UnicodeDecodeError'>
    Traceback (most recent call last):
      File "/home/jc/.vim/plug/vdebug/python3/vdebug/event.py", line 784, in dispatch_event
        Dispatcher.events[name](self.__session_handler).run(*args)
      File "/home/jc/.vim/plug/vdebug/python3/vdebug/event.py", line 660, in run
        self.ui.windows.watch().accept_renderer(rend)
      File "/home/jc/.vim/plug/vdebug/python3/vdebug/ui/vimui.py", line 619, in accept_renderer
        self.write(renderer.render())
      File "/home/jc/.vim/plug/vdebug/python3/vdebug/ui/vimui.py", line 910, in render
        properties = self.response.get_context()
      File "/home/jc/.vim/plug/vdebug/python3/vdebug/dbgp.py", line 125, in get_context
        self.create_properties(ContextProperty(c))
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 12: invalid continuation byte
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions