home *** CD-ROM | disk | FTP | other *** search
- showDebugger: procedure
- if arg() ~= 1 then do
- say "showDebugger: ERROR"
- exit 20
- end
-
- parse arg debuggerInfo
-
- firstLine = sourceline(1)
- parse var firstLine '/*' 'TITLE:' title '*/'
- if showlist('p', 'AVMLOGGER') then
- address 'AVMLOGGER' 'add' title ':' debuggerInfo
- else
- say title ':' debuggerInfo
-
- return
-
- /*-----------------------------------------------------------------------*/
- /* signal processing */
-
- arexxerror:
- error:
- call showDebugger("Error" rc "at line" sigl)
- exit 20
-
- break_c:
- halt:
- call showDebugger("Halt/Break_C at line" sigl)
- exit 20
-
- novalue:
- call showDebugger("No value at line" sigl)
- exit 20
-
- syntax:
- call showDebugger("Syntax error" rc "at line" sigl)
- exit 20
-