Difference between revisions of "Modules/debug/Settings"

From MSX Game Library

< Modules‎ | debug

Line 12: Line 12:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
When <tt>DEBUG_DISABLE</tt> is set to <tt>DEBUG_OPENMSX_P</tt>, you also need to setup additionnal emulator command line in your project configuration (<tt>project_config.js</tt>):
+
When <tt>DEBUG_TOOL</tt> is set to <tt>DEBUG_OPENMSX_P</tt>, you also need to setup additionnal emulator command line in your project configuration (<tt>project_config.js</tt>):
 
<syntaxhighlight lang="js">
 
<syntaxhighlight lang="js">
 
//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
 
//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
 
EmulExtraParam= `-script ${ToolsDir}script/openMSX/debugger_pvm.tcl`;
 
EmulExtraParam= `-script ${ToolsDir}script/openMSX/debugger_pvm.tcl`;
 +
</syntaxhighlight>
 +
 +
When <tt>DEBUG_TOOL</tt> is set to <tt>DEBUG_OPENMSX_G</tt>, you also need to setup additionnal emulator command line in your project configuration (<tt>project_config.js</tt>):
 +
<syntaxhighlight lang="js">
 +
//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
 +
EmulExtraParam= `-script ${ToolsDir}script/openMSX/profiler_grauw.tcl`;
 +
</syntaxhighlight>
 +
 +
When <tt>DEBUG_TOOL</tt> is set to <tt>DEBUG_OPENMSX_S</tt>, you also need to setup additionnal emulator command line in your project configuration (<tt>project_config.js</tt>):
 +
<syntaxhighlight lang="js">
 +
//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
 +
EmulExtraParam= `-script ${ToolsDir}script/openMSX/profiler_salute.tcl`;
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 22:12, 9 September 2024

Library configuration (msxgl_config.h):

// Debugger and profiler options
// - DEBUG_DISABLE ................ No debug or profile feature
// - DEBUG_EMULICIOUS ............. Debug features for Emulicious
// - DEBUG_OPENMSX ................ Debug features for openMSX using 'debugdevice' extension
// - DEBUG_OPENMSX_P .............. Debug features for openMSX using PVM script (tools/script/openMSX/debugger_pvm.tcl)
// - DEBUG_OPENMSX_G .............. Profiler features for openMSX using Grauw script (tools/script/openMSX/profiler_grauw.tcl)
// - DEBUG_OPENMSX_S .............. Profiler features for openMSX using Salutte script (tools/script/openMSX/profiler_salutte.tcl)
#define DEBUG_TOOL					DEBUG_DISABLE
#define PROFILE_LEVEL				10

When DEBUG_TOOL is set to DEBUG_OPENMSX_P, you also need to setup additionnal emulator command line in your project configuration (project_config.js):

//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
EmulExtraParam= `-script ${ToolsDir}script/openMSX/debugger_pvm.tcl`;

When DEBUG_TOOL is set to DEBUG_OPENMSX_G, you also need to setup additionnal emulator command line in your project configuration (project_config.js):

//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
EmulExtraParam= `-script ${ToolsDir}script/openMSX/profiler_grauw.tcl`;

When DEBUG_TOOL is set to DEBUG_OPENMSX_S, you also need to setup additionnal emulator command line in your project configuration (project_config.js):

//-- Emulator extra parameters to be add to command-line (string). Emulator sotfware specific
EmulExtraParam= `-script ${ToolsDir}script/openMSX/profiler_salute.tcl`;