smpl_debug.debug.msg1
- smpl_debug.debug.msg1(_msg, tag='', level=0, times=1, line_=False, _back=0, **kwargs)[source]
Just like
msg()
buttimes
set to 1.Parameters
- tagstr
Sets a tag to be printed for the debug message.
- levelint
Debug level.
- timesint
How often should the message be printed if the function gets called multiple times (e.g. in a loop).
- _linebool
Print the current line in the python source.
- _backint
Number of stack/frames to go back.
Examples
>>> for i in range(-2,2): ... msg1(i, level = i) DBG::<doctest smpl.debug.msg1[0]>:2: -2 -2 -1 0 1