Glk::Debugger Class Reference

#include <debugger.h>

+ Inheritance diagram for Glk::Debugger:
+ Collaboration diagram for Glk::Debugger:

Public Member Functions

 Debugger ()
- Public Member Functions inherited from GUI::Debugger
 Debugger ()
virtual ~Debugger ()
int getCharsPerLine ()
int debugPrintf (const char *format,...) GCC_PRINTF(2
int void debugPrintColumns (const Common::StringArray &list)
virtual void onFrame ()
 The onFrame() method should be invoked by the engine at regular intervals (usually once per main loop iteration) whenever the debugger is attached. More...
virtual void attach (const char *entry=nullptr)
 'Attach' the debugger. More...
bool isActive () const
 Return true if the debugger is currently active (i.e. More...
char * readlineComplete (const char *input, int state)

Protected Member Functions

int strToInt (const char *s)
 Convert a numeric string to an integer. More...
- Protected Member Functions inherited from GUI::Debugger
void registerVar (const Common::String &varname, byte *variable)
void registerVar (const Common::String &varname, int *variable)
void registerVar (const Common::String &varname, bool *variable)
void registerVar (const Common::String &varname, int32 **variable, int arraySize)
void registerVar (const Common::String &varname, Common::String *variable)
void registerCmd (const Common::String &cmdname, Debuglet *debuglet)
virtual void preEnter ()
 Hook for subclasses which is called just before enter() is run. More...
virtual void postEnter ()
 Hook for subclasses which is called just after enter() was run. More...
virtual bool handleCommand (int argc, const char **argv, bool &keepRunning)
 Process the given command line. More...
void detach ()
 Subclasses should invoke the detach() method in their cmdFOO methods if that command will resume execution of the program (as opposed to executing, say, a "single step through code" command). More...
bool cmdExit (int argc, const char **argv)
bool cmdHelp (int argc, const char **argv)
bool cmdOpenLog (int argc, const char **argv)
bool cmdMd5 (int argc, const char **argv)
bool cmdMd5Mac (int argc, const char **argv)
bool cmdDebugLevel (int argc, const char **argv)
bool cmdDebugFlagsList (int argc, const char **argv)
bool cmdDebugFlagEnable (int argc, const char **argv)
bool cmdDebugFlagDisable (int argc, const char **argv)

Private Member Functions

void saveRawPicture (const RawDecoder &rd, Common::WriteStream &ws)
 Saves a decoded raw image to a PNG file. More...
bool cmdDumpPic (int argc, const char **argv)
 Dump a picture. More...

Additional Inherited Members

- Protected Types inherited from GUI::Debugger
enum  VarType {
typedef Common::Functor2< int, const char **, bool > Debuglet

Detailed Description

Definition at line 35 of file debugger.h.

Constructor & Destructor Documentation

◆ Debugger()

Glk::Debugger::Debugger ( )

Definition at line 32 of file debugger.cpp.

Member Function Documentation

◆ cmdDumpPic()

bool Glk::Debugger::cmdDumpPic ( int  argc,
const char **  argv 

Dump a picture.

Definition at line 52 of file debugger.cpp.

◆ saveRawPicture()

void Glk::Debugger::saveRawPicture ( const RawDecoder rd,
Common::WriteStream ws 

Saves a decoded raw image to a PNG file.

Definition at line 103 of file debugger.cpp.

◆ strToInt()

int Glk::Debugger::strToInt ( const char *  s)

Convert a numeric string to an integer.

Definition at line 36 of file debugger.cpp.

The documentation for this class was generated from the following files: