Note that there are some explanatory texts on larger screens.

plurals
  1. POTwisted, Deferred full traceback
    primarykey
    data
    text
    <p>I'm just learning to write applications on Twisted and so do a lot of mistakes.</p> <p>Suppose there is a code:</p> <pre><code>d = defer.Deferred() d.addCallback(self.start_app) #d.addErrback(self.command_die) d.callback(0) def start_app(self, d): #import os return os.startfile(self.path) def command_die(self, d): print ('com_die', d) </code></pre> <p>We have error in os.startfile(self.path) and Big Traceback:</p> <pre><code>Unhandled error in Deferred: Unhandled Error Traceback (most recent call last): File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 542, in _runCallbacks current.result = callback(current.result, *args, **kw) File "C:/Dropbox/my_py/client3.py", line 100, in command_analiz d.callback(i) File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 361, in callback self._startRunCallbacks(result) File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 455, in _startRunCallbacks self._runCallbacks() --- &lt;exception caught here&gt; --- File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 542, in _runCallbacks current.result = callback(current.result, *args, **kw) File "C:/Dropbox/my_py/client3.py", line 353, in start_eve_d return os.startfile(self.path) exceptions.NameError: global name 'os' is not defined </code></pre> <p>If I uncomment #d.addErrback(self.command_die) </p> <p>We have little "log" create by print ('com_die', d):</p> <pre><code>('com_die', &lt;twisted.python.failure.Failure &lt;type 'exceptions.NameError'&gt;&gt;) </code></pre> <p>Is there a way to get the full Log \ TraceBack on design time?</p> <p>At the moment I to understand where there was a new error, it is necessary to comment addErrorback `s</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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