[libre-riscv-dev] [Bug 217] create a "ring" system which allows pad locations to be specified conveniently
    bugzilla-daemon at libre-riscv.org 
    bugzilla-daemon at libre-riscv.org
       
    Tue Mar 17 15:24:22 GMT 2020
    
    
  
http://bugs.libre-riscv.org/show_bug.cgi?id=217
--- Comment #28 from Jock Tanner <tanner.of.kha at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #26)
> (In reply to Jean-Paul.Chaput from comment #12)
> 
> >   3. Direct command line.
> >     I wanted especially the GUI to be able to recover after
> >   an exception is raised, to do some forensic.
> >     It is far from perfect but did help me much while debugging.
> 
> yes that makes sense.
> 
> i *think* there may be a better way to do that,
> hmmm https://wiki.python.org/moin/PythonDebuggingTools
> 
> ah yes:
> https://docs.python.org/3/library/pdb.html
> 
> python3 -m pdb {scriptname.py}
Oh, being unable to use Pycharm's built-in debugger, I had to resort to ipdb.
It's like pdb but nicer. It's possible to just throw
'import ipdb; ipdb.set_trace()'
anywhere in the source file, and it opens its console there.
But exception wrappers are perfectly valid. Sometimes even indispensable. In
Celery tasks, for example. It's just may be more convenient to use
'traceback.print_exception()' inside them instead of 'print()'.
https://docs.python.org/2.7/library/traceback.html
-- 
You are receiving this mail because:
You are on the CC list for the bug.
    
    
More information about the libre-riscv-dev
mailing list