You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When pdbpp and web_pdb are installed in the same env, web_pdb is unable to run giving following traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/home/user/Code/module.py", line 1772, in backup_data_tgz
web_pdb.set_trace()
File "/home/user/.virtualenvs/venv/lib/python3.10/site-packages/web_pdb/__init__.py", line 256, in set_trace
pdb = WebPdb(host, port, patch_stdstreams)
File "/home/user/.virtualenvs/venv/lib/python3.10/site-packages/pdbpp.py", line 276, in __call__
obj.__init__(*args, **kwargs)
TypeError: WebPdb.__init__() got an unexpected keyword argument 'start_filename'
This happens because, by default, pdbpp hijacks pdb.
Setting environment variable PDBPP_HIJACK_PDB=0 solves this issue.
I struggled a bit before noticing that pdbpp hijacks pdb.
I have three proposal:
Would it be posisble to mention in README.md that by default pdbpp hijacks pdb?
Would it be possible to to set the default not to hijack pdb and provide instructions to do so?
Would it be possible to have a compatible interface with pdb? I have no clue of how pdbpp is implemented and how much the effort for this would be
When pdbpp and web_pdb are installed in the same env, web_pdb is unable to run giving following traceback:
This happens because, by default, pdbpp hijacks pdb.
Setting environment variable PDBPP_HIJACK_PDB=0 solves this issue.
I struggled a bit before noticing that pdbpp hijacks pdb.
I have three proposal:
FYI: I opened also romanvm/python-web-pdb#67
The text was updated successfully, but these errors were encountered: