From f7f4148b4004c225a30bb80794094b574fbea744 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 2 Dec 2012 04:51:15 +0000 Subject: change uiButGetStrInfo() to use a trailing NULL arg rather then passing the number of args as an arg. --- doc/python_api/rst/info_tips_and_tricks.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/python_api/rst/info_tips_and_tricks.rst b/doc/python_api/rst/info_tips_and_tricks.rst index 521031f5e61..4dcbf431724 100644 --- a/doc/python_api/rst/info_tips_and_tricks.rst +++ b/doc/python_api/rst/info_tips_and_tricks.rst @@ -218,6 +218,14 @@ The next example is an equivalent single line version of the script above which ``code.interact`` can be added at any line in the script and will pause the script an launch an interactive interpreter in the terminal, when you're done you can quit the interpreter and the script will continue execution. +If you have **IPython** installed you can use their ``embed()`` function which will implicitly use the current namespace, this has autocomplete and some useful features that the standard python eval-loop doesn't have. + +.. code-block:: python + + import IPython + IPython.embed() + + Admittedly this highlights the lack of any python debugging support built into blender, but its still handy to know. .. note:: -- cgit v1.2.3