Skip to content

Granular Traceback Coloring #194

@ikanobori

Description

@ikanobori

For this to be useful, it'd probably be nice to have <<issue 193>> first, but wanted something like:

#!python

Traceback (most recent call last):
      File "foo.py", line 146, in trampoline
        value = next(value.generator)
      File "bar.py", line 51, in _match
        eggs()
      File "baz.py", line 247, in <lambda>
        s = lambda pancakes : 12
      File "spam.py", line 165, in next
        if new <= len(self.old):
    TypeError: object of type 'int' has no len()

to be a little easier to read. When you have a full traceback it can be a little disorienting seeing a wall of red (maybe rightfully so :)

Something like making everything gray, the filenames be bold, and only the first? (last?) call be red would be nice, if not as the default, just to be able to configure.


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions