[调试]
<p><strong>方法签名:</strong> </p>
<p><code>debug(lineNum,name,val)</code></p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>使用弹出窗口显示所调式变量在任务运行到调试函数时的值</li>
<li>该函数只有在DEE可视化配置工具中有效,在A8中运行时自动无效</li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">lineNum</td>
<td style="text-align: left;">String</td>
<td style="text-align: left;">调试函数所在脚本函数,系统自动生成,不需要用户填写</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">String</td>
<td style="text-align: left;">所需要调试的变量名称</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">Object</td>
<td style="text-align: left;">所需要调试的变量</td>
</tr>
</tbody>
</table>
<p><strong>返回值说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">void</td>
<td style="text-align: left;">没有返回值</td>
</tr>
</tbody>
</table>
<p><strong>使用例子</strong></p>
<pre><code>String str = &quot;hello world&quot;;
debug(&quot;2&quot;,&quot;str&quot;,str);
str = &quot;hello everyone&quot;;</code></pre>
<p><strong>输出结果</strong></p>
<pre><code>参数名称:str
脚本名称:script
参数行数:2
参数值:hello world</code></pre>
<p><strong>备注</strong> </p>
<ul>
<li>无</li>
</ul>