text: #ifndef BLITZ_DEBUG_H
  #define BLITZ_DEBUG_H
  
  #include <bb/hook/hook.h>
  #include "basic.h"
  
  class Debugger{
  public:
  	virtual ~Debugger(){};
  
  	virtual void debugRun()=0;
  	virtual void debugStop()=0;
  	virtual void debugStmt( int srcpos,const char *file )=0;
  	virtual void debugEnter( void *frame,void *env,const char *func )=0;
  	virtual void debugLeave()=0;
  	virtual void debugLog( const char *msg )=0;
  	virtual void debugMsg( const char *msg,bool serious )=0;
  	virtual void debugSys( void *msg )=0;
  };
  
  void BBCALL bbAttachDebugger( Debugger *d );
  Debugger * BBCALL bbGetDebugger();
  
  extern BBHook bbOnDebugStop;
  extern BBHook bbOnDebugError;
  extern BBHook bbOnDebugInfo;
  
  #endif
  