[Eric] eric4 configuration: how to see complete error tracebacks?

Detlev Offenbach detlev at die-offenbachs.de
Thu Sep 23 17:02:30 BST 2010


On Mittwoch, 22. September 2010, kim gerdes wrote:
> hello,
> 
> i love eric for python programming, but there's one thing that makes
> the experience less pleasant:
> 
> when executing a script from eric, when an error occurs, i'd love to
> see the complete python error tracebacks and not just the last line
> which shows up in the error popup.
> does this option exist? 

This option exists since the very early beginnings. In the local variables 
viewer you see a drop down list. This shows the traceback. From there you may 
select the point you want to inspect closer.

> somehow i don't find it in the preferences. or
> is there a better way to discover how the problem occurred?
> i also find it annoying that the source code of the python source
> shows up if the most recent error happened in a python source file.
> can i switch that off? (or even better: can i get it to show _my_ last
> file where the error happened, i.e., exclusively the position in the
> last file _inside_ the project?)

No, the debugger stops as soon as an error occurs. However, it is just one 
click in the a.m. traceback combo to see where your source caused the issue.

> 
> thanks in advance for any hint
> kim
> 
> 
> 
> ps: unrelated minor issues, but since i'm writing already...:
> - why does "compile form" in the "forms" tab gives me that
> "successful" window and "compile all forms" doesn't? i'd love the
> window to show up only if an error happened, just like for "compile
> all forms". 

That was done in order to give some feedback. However, that can be argued 
about.

> even greater would be if i could tell eric to recompile
> automatically if an ui-file in my list hast changed...

That option is there. config dialog, Project page

> - why can eric restart normal qt-windows (with F4 for example) and
> modal windows have to be killed explicitely first?

Please post an example script together with some instructions to reproduce 
this issue.

Regards,
Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list