Good work Hubert. If you want this to be part of Spyder for our next
version, please send us a pull request against our BitBucket repo:
https://bitbucket.org/spyder-ide/spyderlib/overview
Cheers,
Carlos
El 04/01/14 16:57, Hubert C escribió:
Thanks for the help, guys. I was able to emit a signal when a
traceback occurs in ConsoleBaseWidget.append_text_to_shell() in
base.py. Then I have it execute "import pdb;pdb.pm()". Also added a
checkbox option in spyder.
On Monday, November 4, 2013 2:17:54 PM UTC-8, Hubert C wrote:
I've been trying to figure out how to modify the spyder code to
enter post-mortem automatically on a traceback, similar to
pyscripter. Where in the code could that go?
sitecustomize.py has:
@monkeypatch_method(pdb.Pdb, 'Pdb')
def interaction(self, frame, traceback):
self.setup(frame, traceback)
self.notify_spyder(frame)
#-----Spyder-specific-------------------------
self.print_stack_entry(self.stack[self.curindex])
self.cmdloop()
self.forget()
However, it doesn't seem to get called when an exception occurs...
--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.