⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.xtp

📁 解压在c盘
💻 XTP
字号:
<s1 title="Debugging"><s2 title='Tracing'><p>For larger projects, tracing is vital.  Smaller projects can get awaywith printing to stderr for debugging or stepping through statements.Larger projects need to have tracing in place before debugging.  Whendebugging, you turn on the tracing.  When you deploy the application,you turn off the tracing.</p><p>In Resin, logging is just another stream, similar to the familiarprint writer.  It's enabled by the configuration file.  Using thefollowing idiom adds tracing with essentially no performance penalty.</p><example>&lt;%@ page import='com.caucho.vfs.*' %>&lt;%!static WriteStream dbg = LogStream.open("/foo.com/jsp");%>&lt;%if (dbg.canWrite())  dbg.log("starting page");%></example><p>When you run this, nothing will get logged until the configurationfile enables '/foo.com/test'.  You could also enable '/foo.com' toget all logging from foo.com.</p><p>Here's the configuration file for logging to a log file in log/foo.log.</p><example>&lt;caucho.com&gt;  &lt;log id='/foo.com/jsp' href='log/foo.log'/>  &lt;http-config&gt;    ...  &lt;/http-config&gt;&lt;/caucho.com&gt;</example><p><var/href/> can be any VFS path known to Resin.  'stderr:' willlog to the standard error.</p></s2></s1>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -