ScummVM API documentation
Ultima::Shared::Debugger Class Reference

#include <debugger.h>

Inheritance diagram for Ultima::Shared::Debugger:
GUI::Debugger Ultima::Nuvie::Debugger Ultima::Ultima1::Debugger Ultima::Ultima4::Debugger

Public Member Functions

void executeCommand (const Common::String &cmd)
 
void executeCommand (int argc, const char **argv)
 
- Public Member Functions inherited from GUI::Debugger
int getCharsPerLine ()
 
int debugPrintf (MSVC_PRINTF const char *format,...) GCC_PRINTF(2
 
int void debugPrintColumns (const Common::StringArray &list)
 
virtual void onFrame ()
 
virtual void attach (const char *entry=nullptr)
 
bool isActive () const
 

Protected Member Functions

int strToInt (const char *s)
 
bool strToBool (const char *s)
 
void splitString (const Common::String &str, Common::StringArray &argv)
 
- 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, float *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)
 
void registerDefaultCmd (defaultCommand *defaultCommandProcessor)
 
void clearVars ()
 
void setPrompt (Common::String prompt)
 
void resetPrompt ()
 
virtual void preEnter ()
 
virtual void postEnter ()
 
virtual bool handleCommand (int argc, const char **argv, bool &keepRunning)
 
void detach ()
 
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)
 
bool cmdClearLog (int argc, const char **argv)
 
bool cmdExecFile (int argc, const char **argv)
 

Additional Inherited Members

- Protected Types inherited from GUI::Debugger
enum  VarType {
  DVAR_BYTE, DVAR_INT, DVAR_FLOAT, DVAR_BOOL,
  DVAR_INTARRAY, DVAR_STRING
}
 
typedef Common::Functor1< const char *, bool > defaultCommand
 
typedef Common::Functor2< int, const char **, bool > Debuglet
 
- Protected Attributes inherited from GUI::Debugger
PauseToken _debugPauseToken
 
GUI::ConsoleDialog_debuggerDialog
 

Detailed Description

Debugger base class

Member Function Documentation

◆ strToInt()

int Ultima::Shared::Debugger::strToInt ( const char *  s)
protected

Converts a string to an integer

◆ strToBool()

bool Ultima::Shared::Debugger::strToBool ( const char *  s)
inlineprotected

Converts a string to a boolean

◆ splitString()

void Ultima::Shared::Debugger::splitString ( const Common::String str,
Common::StringArray argv 
)
protected

Split up a command string into arg values

◆ executeCommand() [1/2]

void Ultima::Shared::Debugger::executeCommand ( const Common::String cmd)

Executes the given command

◆ executeCommand() [2/2]

void Ultima::Shared::Debugger::executeCommand ( int  argc,
const char **  argv 
)

Executes the given command


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