forked from pdbpp/pdbpp
-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Description
cd /tmp/
uv init 123 && cd 123
uv add pdbpp ipdb
export PYTHONBREAKPOINT=ipdb.set_trace
echo ' breakpoint()' >> main.py
uv run main.py
result:
Hello from 123!
--Return--
None
> /private/tmp/123/main.py(7)<module>()
5 if __name__ == "__main__":
6 main()
----> 7 breakpoint()
Traceback (most recent call last):
File "/private/tmp/123/main.py", line 7, in <module>
breakpoint()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/bdb.py", line 92, in trace_dispatch
return self.dispatch_return(frame, arg)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/bdb.py", line 151, in dispatch_return
self.user_return(frame, arg)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/pdb.py", line 294, in user_return
self.interaction(frame, None)
File "/private/tmp/123/.venv/lib/python3.9/site-packages/IPython/core/debugger.py", line 455, in interaction
OldPdb.interaction(self, frame, tb)
File "/private/tmp/123/.venv/lib/python3.9/site-packages/pdbpp.py", line 431, in interaction
return self._interaction(frame, tb)
File "/private/tmp/123/.venv/lib/python3.9/site-packages/pdbpp.py", line 465, in _interaction
self._cmdloop()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/pdb.py", line 322, in _cmdloop
self.cmdloop()
File "/private/tmp/123/.venv/lib/python3.9/site-packages/IPython/terminal/debugger.py", line 143, in cmdloop
line = self.thread_executor.submit(self._prompt).result()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 438, in result
return self.__get_result()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
raise self._exception
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
TypeError: 'str' object is not callable
If you suspect this is an IPython 8.18.1 bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at [email protected]
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True
Metadata
Metadata
Assignees
Labels
No labels