Add a note on debugging custom kittens

This commit is contained in:
Kovid Goyal 2019-11-08 16:53:26 +05:30
parent bd1c1839dd
commit 4def89ebb5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -130,6 +130,18 @@ layout, by simply adding the line::
to the ``handle_result()`` function, above.
Debugging kittens
--------------------
The part of the kitten that runs in ``main()`` is just a normal programs and
the output of print statements will be visible in the kitten window.
The ``handle_result()`` part of the kitten runs inside the kitty process.
The output of print statements will go to the ``STDOUT`` of the kitty process.
So if you run kitty from another kitty instance, the output will be visible
in the first kitty instance.
.. _external_kittens:
Kittens created by kitty users