Note that there are some explanatory texts on larger screens.

plurals
  1. POpdb doesn't respond after pdb.set_trace() call
    text
    copied!<p>I have parent process calling its child. I've put <code>import pdb; pdb.set_trace()</code> into the child process code.</p> <p>When I launch the parent with <code>python -m pdb parent.py</code> it's getting frozen. The debugger doesn't respond to any command I type. But when I hit <code>quit</code> or <code>continue</code> it does exits code.</p> <p>It looks like pdb works, but doesn't produce any output.</p> <pre><code>$ python -m pdb parent.py n -m pdb parent.py &gt; d:\scripts\parent.py(53)&lt;module&gt;() -&gt; ''' (Pdb) c </code></pre> <p>It stops responding now.</p> <p>According to the trace I get after interruption, it was standing at the line just after the <code>pdb.set_trace()</code> call.</p> <pre><code>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;[2013.06.13-10:02:06] : accessed by child.py Traceback (most recent call last): File "child.py", line 40, in &lt;module&gt; sys.stderr = open(Definition_h.ErrLog, 'a', 0, encoding=Definition_h.utf8) File "d:\scripts\Definition_h.py", line 863, in unicodeOpen def unicodeOpen(*args, **kwargs): File "C:\Program Files (x86)\Python 2.5.4\lib\bdb.py", line 50, in trace_dispatch return self.dispatch_call(frame, arg) File "C:\Program Files (x86)\Python 2.5.4\lib\bdb.py", line 79, in dispatch_call self.user_call(frame, arg) File "C:\Program Files (x86)\Python 2.5.4\lib\pdb.py", line 134, in user_call self.interaction(frame, None) File "C:\Program Files (x86)\Python 2.5.4\lib\pdb.py", line 187, in interaction self.cmdloop() File "C:\Program Files (x86)\Python 2.5.4\lib\cmd.py", line 148, in cmdloop import readline KeyboardInterrupt: !!!&lt;unprintable KeyboardInterrupt object&gt; Error in sys.excepthook: </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload