<!doctype HTML public "-//W3C//DTD HTML 4.0 Frameset//EN">

<html>

<!--(==============================================================)-->
<!--(Document created with RoboEditor. )============================-->
<!--(==============================================================)-->

<head>

<title>Using Dump Files</title>

<!--(Meta)==========================================================-->

<meta name=generator content="RoboHELP by eHelp Corporation - www.ehelp.com">
<meta name=generator-major-version content=0.1>
<meta name=generator-minor-version content=1>
<meta name=filetype content=kadov>
<meta name=filetype-version content=1>
<meta name=page-count content=1>
<meta name=layout-height content=764>
<meta name=layout-width content=418>
<meta name=date content="07 27, 2001 12:34:57 PM">
<meta name=x-ignored-words content="dump_file_name.txt;content_to_print;output.txt;txt">


<!--(Links)=========================================================-->

<link REL=StyleSheet HREF="../../default.css">



<!--(Style Sheet)===================================================-->

<style>
<!--

A:visited {
	color: #800080;
}

A:link {
	color: #0000ff;
}

-->
</style>


</head>

<!--(Body)==========================================================-->


<body>

<p><span style="font-weight: bold;"><font style="font-family: Arial;"
											face=arial><font style="font-size: large;"
															size=5><font 
 style="color: #008080;"
	color=#008080>Using Dump Files</font></font></font></span></p>

<p>To debug your analyzer it is often helpful to output information to 
 <span style="font-weight: bold;">dump files</span>. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Dump 
 files are created by inserting a line of code in the desired pass file 
 indicating where to output the information. <!--kadov_tag{{<spaces>}}-->&nbsp;&nbsp;<!--kadov_tag{{</spaces>}}--></p>

<p><span style="font-weight: bold;">To create a dump file:</span></p>

<ol>
	
	<li class=kadov-p><p>In the<span style="font-weight: bold;"> Ana Tab</span>,<span 
 style="font-weight: bold;"> </span>right-click on a pass file to open 
 it in the Workspace.</p></li>
	
	<li class=kadov-p><p>In the pass file, add a printing statement using 
 the &quot;&lt;&lt;&quot; operator in the following form: &quot;dump_file_name.txt&quot; 
 &lt;&lt; content_to_print. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}-->Below 
 is a rule from the corporate analyzer that dumps the matched rule text 
 into a dump file called &quot;anaphora&quot;:</p></li>
</ol>

<p style="margin-bottom: 0pt; text-align: Center;"
	align=center><img src="Image224.gif"
						style="width: 396px;
								height: 17px;
								border-width: 1px;
								border-style: solid;
								margin-top: 0px;
								margin-bottom: 0px;
								margin-left: 0px;
								margin-right: 0px;"
						width=396
						height=17
						border=1></p>

<p><span style="font-weight: bold;">To view a dump file:</span></p>

<ol>
	
	<li class=kadov-p><p>On the <span style="font-weight: bold;">Debug 
 Toolbar</span>,<span style="font-weight: bold;"> </span>click on the<span 
 style="font-weight: bold;"> </span>arrow next to the <span style="font-weight: bold;">View 
 Dump Files </span><!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--><img 
 src="Image223.gif"
	style="width: 34px;
			height: 20px;
			border-style: none;
			margin-top: 0px;
			margin-bottom: 0px;
			margin-left: 0px;
			margin-right: 0px;"
	width=34
	height=20
	border=0> icon. <!--kadov_tag{{<spaces>}}-->&nbsp;<!--kadov_tag{{</spaces>}}--></p></li>
	
	<li class=kadov-p><p style="margin-top: 6px; margin-bottom: 0px;">Select 
 a dump <span style="font-weight: bold;">file</span> from the pulldown 
 menu.</p></li>
</ol>

<p style="margin-top: 6px; margin-bottom: 0px;">&nbsp;</p>

<!--(Table)=========================================================-->
<table x-use-null-cells
		wrapperparagraphselector=P
		style="width: 90%;
				border-spacing: 0px;
				margin-top: 6px;"
		cellspacing=0
		width=90%>

<tr>
<td style="background-color: #ffffd5;
			x-cell-content-align: TOP;
			width: 100%;
			padding-left: 2px;
			padding-top: 2px;
			padding-right: 2px;
			padding-bottom: 2px;"
	valign=top
	bgcolor=#FFFFD5>
<p style="margin-bottom: 0; font-weight: bold;">Note<span style="font-weight: normal;">:</span></p>
<ul style="list-style: disc;"
	type=disc>
	
	<li class=kadov-p><p style="font-weight: bold;
								margin-top: 0px;
								margin-bottom: 0px;"><span style="font-weight: normal;">Dump 
 files are created and housed in a system-created directory with a name 
 corresponding to the name of the text file in the project directory.</span></p></li>
	
	<li class=kadov-p><p style="margin-bottom: 0px;
								line-height: 150%;
								margin-top: 6px;">The blue arrow icon <img 
 src="../../Toolbar_buttons/view_output_file_button.gif"
	x-maintain-ratio=TRUE
	style="border: none;
			width: 24px;
			height: 23px;
			float: none;"
	width=24
	height=23
	border=0> on the Debug Toolbar is reserved for output files with the 
 name &quot;output.txt&quot; only.</p></li>
	
	<li class=kadov-p><p style="margin-bottom: 0px;
								margin-top: 6px;
								line-height: Normal;">Dump files that do 
 not include a .txt extension will not show up in View Dump Files pulldown 
 menu.</p></li>
	
	<li class=kadov-p><p style="margin-bottom: 0px;
								margin-top: 6px;
								line-height: Normal;">See the NLP++ section 
 for other ways to redirect data to output files.</p></li>
</ul></td></tr>
</table>

</body>

</html>
