NAME
debugger,debugstr - MachTen system calls to enter MacsBug

SYNOPSIS
Debugger()
Debugstr(message)
char *message;

DESCRIPTION
Debugger is a system call that causes a MacOS Debug trap. If the
Mac has MacsBug installed, this will cause the program to enter
MacsBug. The program counter (pc) displayed by MacsBug is at the
rts instruction of the debugger system call. The pc at the top of
the stack is the return address of the caller.

Debugstr enters MacsBug as described above, and displays the string
pointed to by message. The first byte of message. is expected to
contain the character count.

EXAMPLES
To enter MacsBug and print out the load address of an application
running under MachTen:

extern start_main();
char *buf[80];

sprintf(buf+1,"start address at %X",start_main);
buf[0] = strlen(buf+1);
Debugstr(buf);

NOTES
MacsBug is a trademark of Apple Computer.