Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

TypeError: on_breakpoints_changed() got an unexpected keyword argument 'remove' #1118

Closed
int19h opened this issue Jan 23, 2019 · 2 comments
Closed

Comments

@int19h
Copy link
Contributor

int19h commented Jan 23, 2019

Happens whenever an exception breakpoint is added or removed with the current bits. Full stack:

  File "/home/int19h/.local/lib/python3.7/site-packages/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py", line 47, in process_net_command
    cmd = on_command(py_db, cmd_id, seq, text)
  File "/home/int19h/.local/lib/python3.7/site-packages/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py", line 461, in cmd_remove_exception_break
    self.api.remove_python_exception_breakpoint(py_db, exception)
  File "/home/int19h/.local/lib/python3.7/site-packages/ptvsd/_vendored/pydevd/_pydevd_bundle/pydevd_api.py", line 424, in remove_python_exception_breakpoint
    py_db.on_breakpoints_changed(remove=True)
TypeError: on_breakpoints_changed() got an unexpected keyword argument 'remove'

Unclear why, since on_breakpoints_changed does have that argument declared.

Happens on both Python 2 and Python 3.

@fabioz
Copy link
Contributor

fabioz commented Jan 23, 2019

Will create a test and provide a fix shortly (this happened because the parameter was removed and not remove).

@fabioz
Copy link
Contributor

fabioz commented Jan 23, 2019

Ok, just fixed (as it was pretty simple just added it to pull request #1119).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants