Eugene Sandulenko
b97b2b0fe3
GUI: Add possibility to specify Debugger prompt
2023-02-04 14:58:54 +01:00
Donovan Watteau
69fa387197
GUI: Use MSVC_PRINTF when GCC_PRINTF is used
2022-11-29 01:37:16 +01:00
Roland van Laar
40627f0caf
GUI: Debugger: Implement defaultCommandProcessor
...
A defaultCommandProcessor let's an engine take over the processing of
commands in the debugger. The Director Engine uses the functionality to
implement a repl for the Lingo language.
Example Usage:
registerDefaultCmd(WRAP_DEFAULTCOMMAND(Debugger, lingoCommandProcessor));
The input will now be handled by lingoCommandProcessor. Other commands
will not work untill control is given back to the debugger.
It's up to the engine to return control to the debugger when done.
To return control, call it with a nullptr:
registerDefaultCmd(nullptr);
2022-03-22 23:39:54 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Martin Gerhardy
b1deb8afba
GUI: added float var support to the debugger
2021-09-07 01:33:04 +03:00
Martin Gerhardy
2d42bcfb62
GUI: added new debugger command to execute a file line by line
2020-12-15 12:46:07 +01:00
Vladimir Menshakov
8f2ecc34ee
GUI: Add GUI::Debugger::clearVars, rename private registerVar to registerVarImpl allowing access change.
2020-09-26 18:45:06 +01:00
Eugene Sandulenko
7a152e9af4
JANITORIAL: #include "engine.h" -> "engines/engine.h"
2020-05-10 23:45:43 +02:00
Henrik "Henke37" Andersson
c5bdd7a1f2
GUI: Use PauseToken in Debugger
2020-05-10 23:39:31 +02:00
Paul Gilbert
289c5947ce
ULTIMA8: Redirect keybindings to now use Debugger
2020-02-23 09:52:20 -08:00
Bastien Bouclet
6e1abf064a
GUI: Use nullptr instead of 0 or NULL where appropriate
2020-01-19 15:08:37 +01:00
Colin Snover
b9a649c3e1
GUI: Replace use of strdup with Common::String
...
strdup is a POSIX API, not an ANSI C API. It is not available with
-std=c++11 on newlib-based systems, and VS 2015 will throw errors
unless it is #defined to alias to _strdup or unless deprecation
warnings are turned off (which is not a good idea in general).
Common::String is a safer and potentially faster (due to small
string optimisation) alternative, so prefer it instead.
2018-08-18 16:30:05 +02:00
Paul Gilbert
67090d3cda
GUI: Add support for double quoted parameters in debugger
2017-09-04 10:04:26 -04:00
Torbjörn Andersson
7f4268dc3d
DEBUGGER: Add function for printing a StringArray in columns
2015-08-29 18:08:52 +02:00
David Turner
e3c5eb9afa
Merge pull request #497 from eriktorbjorn/md5-debug
...
Add "md5" command to the debugger
2014-12-05 23:13:12 +00:00
Torbjörn Andersson
84548847a1
DEBUGGER: Add "md5mac" command to get MD5 sum of Mac resource fork.
2014-09-01 21:19:48 +02:00
Torbjörn Andersson
f1fae53731
DEBUGGER: Add "md5" command, to get the MD5 sum of entire files
...
This may make it easier to ask users for the MD5 sum of a file, in
case we suspect a bug report is caused by damaged files.
2014-09-01 20:24:23 +02:00
Einar Johan Trøan Sømåen
e34a8fe9eb
GUI: Fix some Doxygen comments that seem wrong.
2014-08-29 03:28:59 +02:00
Johannes Schickel
8b7672b64c
ALL: Introduce typesafe Debugger::registerVar functions.
...
This also adds a FIXME to SCI which registered an enum type as int...
2014-05-27 02:04:08 +02:00
Johannes Schickel
75a78c89fa
GUI: Don't endorse function naming against our guidelines in docu.
2014-05-27 02:04:08 +02:00
Johannes Schickel
30d64edac4
ALL: Make Debugger command function names conform to our guidelines.
2014-05-27 02:04:08 +02:00
Johannes Schickel
07c9fea9cb
GUI: Slight naming cleanup in Debugger.
2014-05-27 02:04:08 +02:00
Johannes Schickel
ae4ffe01f0
ALL: Rename Debugger::DCmd_Register to Debugger::registerCmd.
2014-05-27 02:04:08 +02:00
Johannes Schickel
0adca2c579
ALL: Rename Debugger::DVar_Register to Debugger::registerVar.
2014-05-27 02:04:07 +02:00
Johannes Schickel
daa8d57a86
ALL: Rename Debugger::DebugPrintf to Debugger::debugPrintf.
2014-05-27 02:04:07 +02:00
D G Turner
bc7af1de19
GUI: Add "debuglevel" command to Debugger base class.
...
This allows the debug level to be changed at runtime from the debug
console.
2014-05-10 17:12:14 +01:00
Johannes Schickel
f5dfe6725a
GUI: Make GPL headers consistent in themselves.
2014-02-18 02:39:35 +01:00
Johannes Schickel
b4d0a8ba66
JANITORIAL: Enforce "} // End of namespace" with a single space after }.
2013-01-26 19:38:02 +01:00
Johannes Schickel
7e4224e52a
COMMON: Fix compilation when USE_HASHMAP_MEMORY_POOL is not defined.
2011-07-03 00:16:07 +02:00
Max Horn
b25fa194b3
GUI: Fix some comments
2011-06-03 16:16:38 +02:00
Max Horn
8b3c36cfad
GUI: Add 'openlog' command to debugger
2011-06-03 13:36:04 +02:00
Max Horn
4b7f6dfa3c
BUILD: Rename USE_TEXT_CONSOLE -> USE_TEXT_CONSOLE_FOR_DEBUGGER
...
This reduces the similarity in name to the otherwise mostly
unrelated DISABLE_TEXT_CONSOLE #define.
2011-05-25 13:24:37 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
6edc86a19b
DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
...
svn-id: r54815
2010-12-07 18:54:21 +00:00
Max Horn
a984fb17c2
GUI: Add GCC_PRINTF to GUI::Debugger::DebugPrintf & fix resulting warnings
...
svn-id: r54007
2010-11-01 16:03:35 +00:00
Max Horn
1d4c82885d
DEBUGGER: Simplify how our console debugger works / is used
...
* Remove _isAttached member var and isAttached method
* Engines now always call the onFrame method; whether it does
something is decided by the debugger class resp. its subclasses
* Make detach() protected instead of private, so that subclasses
can invoke it
* Remove _detach_now member var (call detach() instead).
* Rename _frame_countdown to _frameCountdown and properly
document it.
* Add more doxygen comments
* Cleanup
svn-id: r50963
2010-07-17 18:38:42 +00:00
Johannes Schickel
5870635ba6
Formatting.
...
svn-id: r42792
2009-07-26 07:07:35 +00:00
Willem Jan Palenstijn
45cde5f642
Add optional readline support to the text debugger console.
...
Make text/graphical console selectable with an option to configure.
svn-id: r42787
2009-07-25 23:36:24 +00:00
Willem Jan Palenstijn
00af395ab6
Fix compilation with USE_CONSOLE = 0
...
svn-id: r42623
2009-07-19 21:06:25 +00:00
Max Horn
95a4b26efe
Turned fixed-size lists of debugger/console commands and variables into more flexible data structures
...
svn-id: r40458
2009-05-11 18:02:27 +00:00
Johannes Schickel
f173041811
- moved kyra functor code to common/func.h
...
- adapted debugger code to use functor code from common/func.h
- adapted kyra engine to use functor code from common/func.h
svn-id: r31614
2008-04-20 15:47:11 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Lars Persson
f447d9d38f
Remove debugger hack for Symbian OS!
...
svn-id: r26127
2007-03-13 22:31:55 +00:00
Max Horn
6c26712960
Added GUI::ConsoleDialoggetCharsPerLine() method, and added a big FIXME comment to gui/console.h
...
svn-id: r23892
2006-09-16 17:29:43 +00:00
Max Horn
919092e5fc
Overhaul of the debugger code
...
* Moved Common::Debuggger to GUI::Debugger (mainly to satisfy linker
restrictions)
* Change the base Debugger class to *not* be a template class anymore;
instead, a thin (template based) wrapper class is used to hook up
debugger commands
* Removed duplicate Cmd_Exit and Cmd_Help methods in favor of a single
version of each in GUI::Debugger
* New Cmd_Help doesn't word wrap after 39/78 chars, but rather queries
the console to determine when to wrap
* Debugger::preEnter and postEnter aren't pure virtual anymore
svn-id: r23890
2006-09-16 16:58:27 +00:00