Inserting breakpoints ...

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Jun 16 23:14:22 EDT 2007


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()

-- 
Gabriel Genellina




More information about the Python-list mailing list