擅长:python、mysql、java
<p>要调试控制面,可以定义自己的日志方法,如下所示:</p>
<pre><code>def log(self, message):
sys.stderr.write("LOG: " + message.encode("utf-8"))
</code></pre>
<p>使用示例:</p>
^{pr2}$
<p>这将附加</p>
<pre><code>21179419 ms. RemoteScriptError: LOG: Tonight I'm gonna party like it's 1999
</code></pre>
<p>给你的日志.txt. 在</p>
<p>另外,值得一提的是(至少在live9.1版本中)每次加载新歌时都会重新编译编辑过的控制面文件,而无需重新启动应用程序。在</p>
<p>EDIT:更改了stderr write方法,这样它就不会为每个日志写入两行代码和一个额外的返回值</p>