Jump to content


Photo

ListLines, on in functions, subroutines


  • Please log in to reply
2 replies to this topic

#1 hd0202

hd0202
  • Members
  • 452 posts

Posted 16 June 2012 - 12:58 PM

Sometimes I want to supress the listing of executed code lines, and I use ListLines, off and ListLines, on, e.g. for trace output or timer routines. For subroutine calls I can place the two commands around the Call, subroutine, but for timer and OnMessage routines, the two commands must be placed inside.
timer_routine:
ListLines, off
; .. code to be executed
ListLines, on ; line 117
return ; line 118
Then I get in the list of Commands

118: return
118: return
118: return

and so on, or many lines with nr:} in case of functions.

Therefor I suggest to suppress the return or } immediate following ListLines, on in the list of executed commands.

Hubert

#2 guest3456

guest3456
  • Members
  • 1325 posts

Posted 16 June 2012 - 02:10 PM

i think the docs suggest to use Pause as well

#3 hd0202

hd0202
  • Members
  • 452 posts

Posted 17 June 2012 - 12:51 PM

Yes I know, but that is not the question.

My suggestion is to have as many useful lines as possible to scroll back (and not only lines with the same number and }.

Hubert