mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 17:27:39 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user