Make debugging kittens a little nicer

Now debug() writes to the stderr of the parent kitty process instead of
a temp file.
This commit is contained in:
Kovid Goyal
2018-05-19 16:32:08 +05:30
parent 646a349d82
commit fb57653665
7 changed files with 40 additions and 12 deletions

View File

@@ -46,8 +46,6 @@ def create_kitten_handler(kitten, orig_args):
def set_debug(kitten):
from kittens.tui.loop import debug
path = os.path.join('/tmp', 'kitten-' + kitten)
debug.fd = open(path, 'w')
import builtins
builtins.debug = debug