<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFTRACE</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFTRACE</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
cftrace タグ実行時のアプリケーションの状態について、デバッグデータを表示し、ロギングを行います。実行時のロジックフロー、変数値、および実行時間を追跡します。リクエストの最後、またはリクエストの最後のデバッグセクションに出力を表示します。または、Dreamweaver MX 以降では、[Results] ウィンドウの [Server Debug] タブに出力を表示します。 
</p>

<p>
ColdFusion では、ColdFusion インストールディレクトリ内のファイル logscftrace.log に cftrace の出力がロギングされます。
</p>
<table>
  <tr valign="top">
    <td width="30"><strong>メモ: </strong></td>
    <td>このタグを実行可能にするには、ColdFusion&#160;MX Administrator でデバッグを有効にする必要があります。オプションとして、トレースの要約を報告するには、[トレース] セクションを有効にします。</td>
  </tr>
</table>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
デバッグタグ、変数操作タグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cftrace
   abort = &quot;Yes&quot;、&quot;No&quot;
   category = &quot;string&quot;
   inline = &quot;Yes&quot;、&quot;No&quot;
   text = &quot;string&quot;
   type = &quot;format&quot;
   var = &quot;variable_name&quot;
&lt;/cftrace&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfdump、cferror、cfrethrow、cftimer、cftry、『ColdFusion MX 開発ガイド』の第18章の「アプリケーションのデバッグとトラブルシューティング」 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">ヒストリ</span>
<p>
ColdFusion&#160;MX: このタグが追加されました。
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
このタグ内にはアプリケーションコードを指定できません。これは、デバッグを無効にした場合に問題が発生するのを回避するためです。 
</p>

<p>
このタグは、アプリケーション開発時の CFML コードのデバッグに役立ちます。 
</p>

<p>
cftrace タグの出力は、次の方法で表示できます。
</p>
<ul>

<li>デバッグ出力内のセクションとして表示します。</li>

<li>アプリケーションページにおいてインラインで、デバッグ出力内のセクションとして表示します。インライントレースを指定すると、ColdFusion により cftrace タグまでの出力が消去され、タグ検出時のトレース出力が表示されます。</li>
</ul>

<p>
ログファイル入力の例は、次のとおりです。
</p>
<pre>&quot;Information&quot;,&quot;web-4&quot;,&quot;04/08/02&quot;,&quot;23:21:30&quot;,   ,&quot;[30 ms (1st trace)]      
[C:CFusionMX7wwwrootgeneric.cfm @ line: 9] - 
   [thisPage = /generic.cfm]  &quot;
&quot;Information&quot;,&quot;web-0&quot;,&quot;04/08/02&quot;,&quot;23:58:58&quot;,   ,&quot;[5187 ms (10)]  
[C:CFusionMX7wwwrootgeneric.cfm @ line:14] - [category]
   [thisPage = /generic.cfm] [ABORTED] thisPage &quot;
</pre>
<p>
複雑な変数の場合、ColdFusion では変数名およびオブジェクト内の要素数がリストされます。変数の内容はロギングされません。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span>
<p>
次の例では、cfif ブロックで評価を行う FORM 変数をトレースします。
</p>
<pre>&lt;cftrace var=&quot;FORM.variable&quot;
   text=&quot;doing equivalency check for FORM.variable&quot;
   category=&quot;form_vars&quot;
   inline=&quot;true&quot;&gt;
&lt;cfif isDefined(&quot;FORM.variable&quot;) AND #FORM.variable# EQ 1&gt;
   &lt;h1&gt;おめでとうございます。あなたの勝ちです。&lt;/h1&gt;
&lt;cfelse&gt;
   &lt;h1&gt;残念ながら、あなたの負けです。&lt;/h1&gt;
&lt;/cfif&gt;

</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="ABORT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">ABORT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "No"

<ul>

<li>Yes: このタグを実行する場合に、cfabort タグを呼び出します。</li>

<li>No</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="CATEGORY">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">CATEGORY</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>トレースグループを識別するための、ユーザー定義の文字列です。</p>

  </td>
  </tr>
  </table>
</div>
<div id="INLINE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">INLINE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "No"

<ul>

<li>Yes: デバッグ情報の出力に加えて、ページの cftrace タグの位置にトレースコードをインラインで表示します。 </li>

<li>No</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="TEXT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TEXT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>ユーザー定義の文字列です。単純な変数は使用できますが、配列などの複雑な変数は使用できません。cflog の text 属性に出力します。 </p>

  </td>
  </tr>
  </table>
</div>
<div id="TYPE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TYPE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "Information"


<p>cflog の type 属性に相当します。適切なアイコンを表示します。</p><ul>

<li>Information</li>

<li>Warning</li>

<li>Error </li>

<li>Fatal Information</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="VAR">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">VAR</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>表示する単純な変数または複雑な変数の名前です。 </p>
<p>一時的な値、または、CFM ページ上に表示されない値の表示に役立ちます。</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
