Inserting breakpoints ...

Stef Mientki S.Mientki-nospam at mailbox.kun.nl
Sun Jun 17 07:39:35 EDT 2007


Gabriel Genellina wrote:
> En Sat, 16 Jun 2007 10:22:34 -0300, Stef Mientki 
> <S.Mientki-nospam at mailbox.kun.nl> escribió:
> 
>> for the simulation of some micro language (JAL),
>> the original language is (with a minimal effort) translated into Python,
>> after which the code is run in Python.
>>
>> I want to add a call to a debug routine,
>> called JSM(linenr), which performs task like wait, update user 
>> feedback, etc.
>> This works, but doesn't give a nice output
>> <Python attempt 2>
>> for xxx in xrange ( 16 * hardware_column ):
>>      JSM(78)
>>      Write_LCD_2Bytes ( write_text , 0 )                       ;JSM(79)
>> </Python attempt 2>
> 
> Try sys.settrace()
> 
thanks Gabriel,

that might be a good way to go,
I'll study that in the near feature,
(can't find the easy to read details right now :-(

cheers,
Stef Mientki



More information about the Python-list mailing list