homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pdb-run-restarting-a-pdb-session
Type: behavior Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: ned.deily, zhengxiexie
Priority: normal Keywords:

Created on 2014年08月16日 04:44 by zhengxiexie, last changed 2022年04月11日 14:58 by admin. This issue is now closed.

Messages (2)
msg225383 - (view) Author: linuxie (zhengxiexie) Date: 2014年08月16日 04:44
I was running pdb from the command line.
	Whenever I restart, It throws the error:
	
	 Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 861, in _execute getattr(self, self.request.method.lower())(*args, **kwargs) File "main.py", line 33, in post res = user.login( platform_id, platform_type) File "main.py", line 33, in post res = user.login( platform_id, platform_type) File "/home/work/src/Python-2.7.8/Lib/bdb.py", line 49, in trace_dispatch return self.dispatch_line(frame) File "/home/work/src/Python-2.7.8/Lib/bdb.py", line 67, in dispatch_line self.user_line(frame) File "/home/work/src/Python-2.7.8/Lib/pdb.py", line 158, in user_line self.interaction(frame, None) File "/home/work/src/Python-2.7.8/Lib/pdb.py", line 210, in interaction self.cmdloop() File "/home/work/src/Python-2.7.8/Lib/cmd.py", line 142, in cmdloop stop = self.onecmd(line) File "/home/work/src/Python-2.7.8/Lib/pdb.py", line 279, in onecmd return cmd.Cmd.onecmd(self, line) File "/home/work/src/Python-2.7.8/Lib/cmd.py", line 221, in onecmd return func(arg) File "/home/work/src/Python-2.7.8/Lib/pdb.py", line 679, in do_run raise Restart Restart
	I wonder why a so big bug has not been solved.
msg225414 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014年08月16日 20:32
Without more information, it is hard to know exactly what problem you are seeing but it appears you are trying to run pdb from within the tornado web server. That may be difficult to do; I'm guessing that the pdb debugger main loop does not play well with an event loop in tornado. You might want to ask first on the tornado mailing list: http://www.tornadoweb.org/en/stable/index.html. Otherwise, please show exactly how to reproduce the behavior in pdb that you believe to be in error.
History
Date User Action Args
2022年04月11日 14:58:07adminsetgithub: 66406
2020年10月20日 21:17:19iritkatrielsetstatus: open -> closed
resolution: third party
stage: resolved
2014年08月16日 20:32:07ned.deilysetnosy: + ned.deily
messages: + msg225414
2014年08月16日 04:44:22zhengxiexiecreate

AltStyle によって変換されたページ (->オリジナル) /