<html><head><title>Debugger keywords in SpiderBasic</title></head><body bgcolor="#FFFFFF" link="#207BC3" vlink="#003B83" alink="#003B83"><font face="Arial" size="2"><p align="center"><b><font size="5">Debugger keywords in SpiderBasic</font></b></p><p><b>Overview</b></p><blockquote>Following is a list of special keywords to control the debugger from your source code.There is also a <a href="../debugger/index.html">Debugger library</a> which provides furtherfunctions to modify the behavior of the debugger should it be present.<br><br></blockquote><br><b>Syntax</b><blockquote><pre><font face="Courier New, Courier, mono"size="2"><b><font color="#207BC3">CallDebugger</font></b></font></pre></blockquote><b>Description</b><br><blockquote>This invokes the "debugger" and freezes the program immediately. This will invoke the web browser debugger.</blockquote><br><b>Syntax</b><blockquote><pre><font face="Courier New, Courier, mono"size="2"> <b><font color="#207BC3">Debug</font></b> <expression> [, DebugLevel]</font></pre></blockquote><b>Description</b><br><blockquote>Display the DebugOutput window and the result inside it. The expression can beany valid SpiderBasic expression, from numeric to string. An important point isthe Debug command and its associated expression is totally ignored (not compiled)when the debugger is deactivated. <br><br>Note: This is also true, if you're using complete command lines after Debug(e.g. Debug LoadImage(1,"test.bmp")). They will not be compiled with disabled debugger! <br><br>This means this command can be used to trace easily in the program without havingto comment all the debug commands when creating the final executable. <br><br>The 'DebugLevel' is the level of priority of the debug message. All normal debug message(without specifying a debug level) are automatically displayed. When a level is specifiedthen the message will be only displayed if the current DebugLevel (set with thefollowing <b><font color="#207BC3">DebugLevel</font></b> command) is equals or above this number. This allows hierarchicaldebug mode, by displaying more and more precise information in function of the used DebugLevel.</blockquote><br><b>Syntax</b><blockquote><pre><font face="Courier New, Courier, mono"size="2"><b><font color="#207BC3">DebugLevel</font></b> <constant expression></font></pre></blockquote><b>Description</b><br><blockquote>Set the current debug level for the 'Debug' message.<br><br>Note: The debug level is set at compile time, which means you have to put the<b><font color="#207BC3">DebugLevel</font></b> command before any other Debug commands to be sure it affects them all.</blockquote><br><b>Syntax</b><blockquote><pre><font face="Courier New, Courier, mono"size="2"><b><font color="#207BC3">DisableDebugger</font></b></font></pre></blockquote><b>Description</b><br><blockquote>This will disable the debugger checks on the source code which follow this command.</blockquote><br><b>Syntax</b><blockquote><pre><font face="Courier New, Courier, mono"size="2"><b><font color="#207BC3">EnableDebugger</font></b></font></pre></blockquote><b>Description</b><br><blockquote>This will enable the debugger checks on the source code which follow this command(if the debugger was previously disabled with <b><font color="#207BC3">DisableDebugger</font></b>).<br><br>Note: <b><font color="#207BC3">EnableDebugger</font></b> doesn't have an effect, if the debugger is completelydisabled in the IDE.</body></html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。