|
31.
|
|
|
The biggest problem, though, is that no python code is executed before the statement that is warped to. This means that all variables will be uninitialized, which can lead to crashes when they are used. To overcome this, one can define a label ``after_warp``, which is called after a warp but before the warped-to statement executes. The code reached by this label can set up variables in the program, and then return to the preview.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/developer_tools.rst:116
|
|
32.
|
|
|
The warp feature requires :var:`config.developer` to be True to operate.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/developer_tools.rst:123
|
|
33.
|
|
|
Debug Functions
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/developer_tools.rst:127
|
|
34.
|
|
|
Returns a pair giving the filename and line number of the current statement.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/debug:5
|
|
35.
|
|
|
If :var:`config.log` is not set, this does nothing. Otherwise, it opens the logfile (if not already open), formats the message to 70 columns, and prints it to the logfile.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/debug:10
|
|
36.
|
|
|
This watches the given python expression, by displaying it in the upper-left corner of the screen (although position properties can change that). The expression should always be defined, never throwing an exception.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/debug:16
|
|
37.
|
|
|
A watch will not persist through a save or restart.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/inc/debug:21
|