Using Xtend with the Debugger: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ <span class="f_Para">To use </span><span class="f_Product">Xtend</span><span class="f_Para"> while debugging, you define a </span><span class="f_Product">Janus Web Ser...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
__TOC__
<span class="f_Para">To use </span><span class="f_Product">Xtend</span><span class="f_Para"> while debugging, you define a </span><span class="f_Product">Janus Web Server</span><span class="f_Para"> port and an APSY subsystem in the Online, as well as configuring the </span><span class="f_Product">Xtend</span><span class="f_Para"> GUI and the Debugger Client on your workstation. Once this is complete, you can use </span><span class="f_Product">Xtend</span><span class="f_Para"> with the Debugger, as described above in [[using_local_editor.html|Using a local editor]].</span>
<span class="f_Para">To use </span><var>Xtend</var><span class="f_Para"> while debugging, you define a </span><span class="f_Product">Janus Web Server</span><span class="f_Para"> port and an APSY subsystem in the Online, as well as configuring the </span><var>Xtend</var><span class="f_Para"> GUI and the Debugger Client on your workstation. Once this is complete, you can use </span><var>Xtend</var><span class="f_Para"> with the Debugger, as described above in [[Using a local editor|Using a local editor]].</span>


<span class="f_ListBul3">You</span><span class="f_Notes"> must use version 2.11 or higher of Xtend. The details provided below are for version 2.11</span><span class="f_NoteContinue"> using Janus Web Server. </span>
<span class="f_ListBul3">You</span><span class="f_Notes"> must use version 2.11 or higher of Xtend. The details provided below are for version 2.11</span><span class="f_NoteContinue"> using Janus Web Server. </span>


<span class="f_Para">The configuration steps below are described in this section. They assume the Debugger installation has been completed and tested, as described in [[product_installation.html|Product Installation]]. The </span><span class="f_Product">Xtend</span><span class="f_Para"> product installation and setup is also documented in greater detail in Help files provided with the product.</span>
<span class="f_Para">The configuration steps below are described in this section. They assume the Debugger installation has been completed and tested, as described in [[Installation and Configuration|Product Installation]]. The </span><var>Xtend</var><span class="f_Para"> product installation and setup is also documented in greater detail in Help files provided with the product.</span>


# <span class="f_ListNum1">[[using_xtend.html#install_xtend_204host|Install and configure Xtend in your Model 204 Online]] </span>
# <span class="f_ListNum1">[[Using Xtend with the Debugger#Install and configure Xtend in your Online |Install and configure Xtend in your Model 204 Online]] </span>
# <span class="f_ListNum1">[[using_xtend.html#install_xtend_gui|Install and configure the Xtend GUI]] </span>
# <span class="f_ListNum1">[[Using Xtend with the Debugger#Install and configure the Xtend GUI  |Install and configure the Xtend GUI]] </span>
# <span class="f_ListNum1">[[using_xtend.html#update_jdeb_cfgfile_4xtend|Update the Client configuration file]] </span>
# <span class="f_ListNum1">[[Using Xtend with the Debugger#Update the Debugger Client configuration file  |Update the Client configuration file]] </span>
# <span class="f_ListNum1">[[using_xtend.html#test_configuration_xtend|Test the configuration]]</span>
# <span class="f_ListNum1">[[Using Xtend with the Debugger#Test the configuration|Test the configuration]]</span>


<span class="f_Subhead">Install and configure Xtend in your Online <span id="install_xtend_204host" class="hmanchor"></span></span>
=== Install and configure Xtend in your Online ===


<span class="f_Para">Skip to the next subsection ([[using_xtend.html#install_xtend_gui|Install and configure the Xtend GUI]]) if </span><span class="f_Product">Xtend</span><span class="f_Para"> is already installed at your site. </span>
<span class="f_Para">Skip to the next subsection ([[Using Xtend with the Debugger#Install and configure the Xtend GUI|Install and configure the Xtend GUI]]) if </span><var>Xtend</var><span class="f_Para"> is already installed at your site. </span>


1. <span class="f_ListNum2">Download </span><span class="f_ListNum1">to your workstation two Xtend installation files (one for the Xtend GUI and one for the Model 204 subsystem and web port). </span>
: 1. <span class="f_ListNum2">Download </span><span class="f_ListNum1">to your workstation two Xtend installation files (one for the Xtend GUI and one for the Model 204 subsystem and web port). </span>
2. <span class="f_ListNum1">Set up a Model 204 subsystem (XTEND) to control </span><span class="f_Product">Xtend</span><span class="f_ListNum1"> processing. </span>
: 2. <span class="f_ListNum1">Set up a Model 204 subsystem (XTEND) to control </span><var>Xtend</var><span class="f_ListNum1"> processing. </span>
:: Notes for doing this are provided in the </span><span class="f_Monospace">XtendInstall.HLP</span><span class="f_ListContinue"> file in the XtendInstall folder. See the &quot;Xtend Apsy&quot; section.</span>
:: Notes for doing this are provided in the </span><span class="term">XtendInstall.HLP</span><span class="f_ListContinue"> file in the XtendInstall folder. See the &quot;Xtend Apsy&quot; section.</span>
3. <span class="f_ListNum1">From the PC, run the </span><span class="f_Product">Xtend</span><span class="f_ListNum1"> installer executable (</span><span class="f_Monospace">XtendInstall.exe</span><span class="f_ListNum1">), which will populate the XTEND subsystem files. </span>
: 3. <span class="f_ListNum1">From the PC, run the </span><var>Xtend</var><span class="f_ListNum1"> installer executable (</span><span class="term">XtendInstall.exe</span><span class="f_ListNum1">), which will populate the XTEND subsystem files. </span>
4. <span class="f_ListNum1">In the Online, run the XTEND.JANUS.DEFINE procedure in the XTENDPRC procedure file to start the </span><span class="f_Product">Xtend</span><span class="f_ListNum1"> Janus Web port. </span>
: 4. <span class="f_ListNum1">In the Online, run the XTEND.JANUS.DEFINE procedure in the XTENDPRC procedure file to start the </span><var>Xtend</var><span class="f_ListNum1"> Janus Web port. </span>
:: The default port number for the non_SSL port is </span><span class="f_Monospace">7878</span><span class="f_ListContinue">; for the secure port it is </span><span class="f_Monospace">7879</span><span class="f_ListContinue">. Change these numbers if necessary for your site.</span>
:: The default port number for the non_SSL port is </span><span class="term">7878</span><span class="f_ListContinue">; for the secure port it is </span><span class="term">7879</span><span class="f_ListContinue">. Change these numbers if necessary for your site.</span>


=== Install and configure the Xtend GUI ===
=== Install and configure the Xtend GUI ===
# <span class="f_ListNum2">If you will use </span><span class="f_Product">Janus Debugger</span><span class="f_ListNum2"> and have configured a proxy server for the Internet Explorer browser, update the proxy settings to provide a </span><span class="f_ListNum1">bypass for connections to the </span><span class="f_Product">Xtend</span><span class="f_ListNum1"> web port. </span>
# <span class="f_ListNum2">If you will use </span><var>Janus Debugger</var><span class="f_ListNum2"> and have configured a proxy server for the Internet Explorer browser, update the proxy settings to provide a </span><span class="f_ListNum1">bypass for connections to the </span><var>Xtend</var><span class="f_ListNum1"> web port. </span>
## <span class="f_ListNum2">From the </span><span class="f_GUIlabel">Tools</span><span class="f_ListNum2"> menu, select </span><span class="f_GUIlabel">Internet Options</span><span class="f_ListNum2">; then select the </span><span class="f_GUIlabel">Connections</span><span class="f_ListNum2"> tab, and click the </span><span class="f_GUIlabel">LAN Settings</span><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">From the </span><var>Tools</var><span class="f_ListNum2"> menu, select </span><var>Internet Options</var><span class="f_ListNum2">; then select the </span><var>Connections</var><span class="f_ListNum2"> tab, and click the </span><var>LAN Settings</var><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">Locate the </span><span class="f_GUIlabel">Proxy Server</span><span class="f_ListNum2"> area, and click the </span><span class="f_GUIlabel">Advanced</span><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">Locate the </span><var>Proxy Server</var><span class="f_ListNum2"> area, and click the </span><var>Advanced</var><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">In the </span><span class="f_GUIlabel">Exceptions</span><span class="f_ListNum2"> area, in the list box labeled &quot;Do not use proxy server for addresses beginning with,&quot; specify the URL of the </span><span class="f_Product">Xtend</span><span class="f_ListNum2"> web server port you [[using_xtend.html#install_xtend_204host|defined]]. </span>
## <span class="f_ListNum2">In the </span><var>Exceptions</var><span class="f_ListNum2"> area, in the list box labeled &quot;Do not use proxy server for addresses beginning with,&quot; specify the URL of the </span><var>Xtend</var><span class="f_ListNum2"> web server port you [[Using Xtend with the Debugger#Install and configure Xtend in your Online |defined]]. </span>
## <span class="f_ListNum2">Click </span><span class="f_GUIlabel">OK</span><span class="f_ListNum2"> as needed to close the multiple dialog boxes.</span>
## <span class="f_ListNum2">Click </span><var>OK</var><span class="f_ListNum2"> as needed to close the multiple dialog boxes.</span>
# <span class="f_ListNum1">Set up a remote connection to </span><span class="f_Product">Model 204</span><span class="f_ListNum1"> from the </span><span class="f_Product">Xtend</span><span class="f_ListNum1"> GUI.</span>
# <span class="f_ListNum1">Set up a remote connection to </span><var>Model 204</var><span class="f_ListNum1"> from the </span><var>Xtend</var><span class="f_ListNum1"> GUI.</span>
## <span class="f_ListNum2">Open the </span><span class="f_Product">Xtend</span><span class="f_ListNum2"> GUI executable file (</span><span class="f_Monospace">Xtend.exe</span><span class="f_ListNum2">), and select </span><span class="f_GUIlabel">Options</span><span class="f_ListNum2"> from the </span><span class="f_GUIlabel">View</span><span class="f_ListNum2"> menu. </span>
## <span class="f_ListNum2">Open the </span><var>Xtend</var><span class="f_ListNum2"> GUI executable file (</span><span class="term">Xtend.exe</span><span class="f_ListNum2">), and select </span><var>Options</vavr><span class="f_ListNum2"> from the </span><var>View</var><span class="f_ListNum2"> menu. </span>
## <span class="f_ListNum2">In the </span><span class="f_GUIlabel">Options</span><span class="f_ListNum2"> dialog box, select the </span><span class="f_GUIlabel">Remote</span><span class="f_ListNum2"> tab. </span>
## <span class="f_ListNum2">In the </span><var>Options</var><span class="f_ListNum2"> dialog box, select the </span><var>Remote</var><span class="f_ListNum2"> tab. </span>
## <span class="f_ListNum1">In the grid in the main work area, specify a name for this connection and supply a </span><span class="f_Product">Model 204</span><span class="f_ListNum1"> user ID, host name, and the web server port </span><span class="f_ListNum2">you [[using_xtend.html#install_xtend_204host|defined]]</span><span class="f_ListNum1">, </span><span class="f_ListNum2">and click the </span><span class="f_GUIlabel">Apply</span><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum1">In the grid in the main work area, specify a name for this connection and supply a </span><var>Model 204</var><span class="f_ListNum1"> user ID, host name, and the web server port </span><span class="f_ListNum2">you [[Using Xtend with the Debugger#Install and configure Xtend in your Online |defined]]</span><span class="f_ListNum1">, </span><span class="f_ListNum2">and click the </span><var>Apply</var><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">If you will use </span><span class="f_Product">TN3270 Debugger,</span><span class="f_ListNum2"> select the name (Caption) of the remote connection you just defined from the </span><span class="f_Monospace">Default edit online when using TN3270 Debugger</span><span class="f_ListNum2"> drop down list, then click the </span><span class="f_GUIlabel">OK</span><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">If you will use </span><var>TN3270 Debugger,</var><span class="f_ListNum2"> select the name (Caption) of the remote connection you just defined from the </span><span class="term">Default edit online when using TN3270 Debugger</span><span class="f_ListNum2"> drop down list, then click the </span><var>OK</var><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">Optionally, review and update the settings in the other </span><span class="f_GUIlabel">Options</span><span class="f_ListNum2"> tabs. </span>
## <span class="f_ListNum2">Optionally, review and update the settings in the other </span><var>Options</var><span class="f_ListNum2"> tabs. </span>
# <span class="f_ListNum1">Add the names of the procedure files (and their privileges) whose procedures you will be editing with </span><span class="f_Product">Xtend</span><span class="f_ListNum1">.  </span>
# <span class="f_ListNum1">Add the names of the procedure files (and their privileges) whose procedures you will be editing with </span><var>Xtend</var><span class="f_ListNum1">.  </span>
# <span class="f_ListNum2">Select </span><span class="f_GUIlabel">Administrator Functions</span><span class="f_ListNum2"> from the </span><span class="f_GUIlabel">Admin</span><span class="f_ListNum2"> menu; then select the </span><span class="f_GUIlabel">Files</span><span class="f_ListNum2"> tab.</span>
# <span class="f_ListNum2">Select </span><var>Administrator Functions</var><span class="f_ListNum2"> from the </span><var>Admin</var><span class="f_ListNum2"> menu; then select the </span><var>Files</var><span class="f_ListNum2"> tab.</span>
## <span class="f_ListNum2">In the </span><span class="f_GUIlabel">File</span><span class="f_ListNum2"> columns, name the procedure files that contain the procedures you want to make accessible from </span><span class="f_Product">Xtend</span><span class="f_ListNum2">; in the </span><span class="f_GUIlabel">Privileges</span><span class="f_ListNum2"> column, select a privilege level.</span>
## <span class="f_ListNum2">In the </span><var>File</var><span class="f_ListNum2"> columns, name the procedure files that contain the procedures you want to make accessible from </span><var>Xtend</var><span class="f_ListNum2">; in the </span><var>Privileges</var><span class="f_ListNum2"> column, select a privilege level.</span>
## This information can alternatively be specified in the XTEND subsystem itself. </span>
## This information can alternatively be specified in the XTEND subsystem itself. </span>
## <span class="f_ListNum2">Click the </span><span class="f_GUIlabel">Save Details</span><span class="f_ListNum2"> button, followed by the </span><span class="f_GUIlabel">Close</span><span class="f_ListNum2"> button. </span>
## <span class="f_ListNum2">Click the </span><var>Save Details</var><span class="f_ListNum2"> button, followed by the </span><var>Close</var><span class="f_ListNum2"> button. <br/>'''Note:'''<span class="f_ListNote"> For procedure files that have explicit passwords, you must either add the file name to the XTEND subsystem files listed in the Subsystem File Use screen in the </span><var>Model 204</var><span class="f_ListNote"> Subsystem Management facility, or you must modify a subroutine in the XTENDPRC procedure file (as described in </span><span class="f_ListContinue">the </span><span class="term">XtendInstall.HLP</span><span class="f_ListContinue"> file</span><span class="f_ListNote">).</span></span>
 
'''Note:'''<span class="f_ListNote"> For procedure files that have explicit passwords, you must either add the file name to the XTEND subsystem files listed in the Subsystem File Use screen in the </span><span class="f_Product">Model 204</span><span class="f_ListNote"> Subsystem Management facility, or you must modify a subroutine in the XTENDPRC procedure file (as described in </span><span class="f_ListContinue">the </span><span class="f_Monospace">XtendInstall.HLP</span><span class="f_ListContinue"> file</span><span class="f_ListNote">).</span>
 
# <span class="f_ListNum1">Test your connection.</span>
# <span class="f_ListNum1">Test your connection.</span>
## <span class="f_ListNum2">In the </span><span class="f_GUIlabel">Procedure List</span><span class="f_ListNum2"> dialog box, select the tab that is labeled with the name of your remote connection. </span>
## <span class="f_ListNum2">In the </span><var>Procedure List</var><span class="f_ListNum2"> dialog box, select the tab that is labeled with the name of your remote connection. A list of your procedures is retrieved and displayed.
<span class="f_ListContinue2">A list of your procedures is retrieved and displayed.</span>
## <span class="f_ListNum2">Display a test procedure's code (double click the procedure name), make some update, then save the updated procedure by clicking the Save File icon on the toolbar.</span>
## <span class="f_ListNum2">Display a test procedure's code (double click the procedure name), make some update, then save the updated procedure by clicking the Save File icon on the toolbar.</span>
## <span class="f_ListNum2">In your Online, check that the updated procedure has replaced the original. </span>
## <span class="f_ListNum2">In your Online, check that the updated procedure has replaced the original. </span>
## <span class="f_ListNum2">If your connection test is successful, close </span><span class="f_Product">Xtend</span><span class="f_ListNum2">.</span>
## <span class="f_ListNum2">If your connection test is successful, close </span><var>Xtend</var><span class="f_ListNum2">.</span>


=== Update the Debugger Client configuration file ===
=== Update the Debugger Client configuration file ===


<span class="f_Para">Once </span><span class="f_Product">Xtend</span><span class="f_Para"> is installed and configured for debugging, you enable the Debugger(s) to invoke it by adding an entry to the Debugger Client configuration file </span><span class="f_Monospace">(debuggerConfig.xml)</span><span class="f_Para">. This file is installed in the same directory as the Debugger Client executable file, and it is [[customize_debugger_cfg_file.html|initially configured]] as part of the Debugger Client installation.</span>
<span class="f_Para">Once </span><var>Xtend</var><span class="f_Para"> is installed and configured for debugging, you enable the Debugger(s) to invoke it by adding an entry to the Debugger Client configuration file </span><span class="term">(debuggerConfig.xml)</span><span class="f_Para">. This file is installed in the same directory as the Debugger Client executable file, and it is [[Customize debuggerConfig file|initially configured]] as part of the Debugger Client installation.</span>


<span class="f_Para">To update the file: </span>
<span class="f_Para">To update the file: </span>


# <span class="f_ListNum1">Open the </span><span class="f_Monospace">debuggerConfig.xml</span><span class="f_ListNum1"> file in a text editor.</span>
# <span class="f_ListNum1">Open the </span><span class="term">debuggerConfig.xml</span><span class="f_ListNum1"> file in a text editor.</span>
# <span class="f_ListNum1">Add an </span><span class="f_Monospace">&lt;editor&gt;</span><span class="f_ListNum1"> element (bounded by an </span><span class="f_Monospace">&lt;editor&gt;</span><span class="f_ListNum1"> start tag and an </span><span class="f_Monospace">&lt;\editor&gt;</span><span class="f_ListNum1"> end tag) at the same level (as a sibling of) the existing </span><span class="f_Monospace">&lt;serverList&gt;</span><span class="f_ListNum1"> element.</span>
# <span class="f_ListNum1">Add an </span><span class="term">&lt;editor&gt;</span><span class="f_ListNum1"> element (bounded by an </span><span class="term">&lt;editor&gt;</span><span class="f_ListNum1"> start tag and an </span><span class="term">&lt;\editor&gt;</span><span class="f_ListNum1"> end tag) at the same level (as a sibling of) the existing </span><span class="term">&lt;serverList&gt;</span><span class="f_ListNum1"> element.</span>
 
: Include these <span class="term">&lt;editor&gt;</span><span class="f_ListContinue"> subelements, and specify values for them as described in the </span><span class="term">Comment</span><span class="f_ListContinue"> section below: </span>
<span class="f_ListContinue">Include these </span><span class="f_Monospace">&lt;editor&gt;</span><span class="f_ListContinue"> subelements, and specify values for them as described in the </span><span class="f_Monospace">Comment</span><span class="f_ListContinue"> section below: </span>


<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 24px 0 24px 30px;">
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 24px 0 24px 30px;">


{|
{|
|width="50%"| <span class="f_DefListTermTable">Subelement </span>
|width="50%"| <span class="f_DefListTermTable">'''Subelement''' </span>
|width="50%"| <span class="f_DefListTermTable">Comment </span>
|width="50%"| <span class="f_DefListTermTable">Comment </span>
|-
|-
| <span class="f_DefListDDTable">&lt;program&gt;&lt;/program&gt; </span>
| <span class="f_DefListDDTable">'''&lt;program&gt;&lt;/program&gt;''' </span>
|
|
<span class="f_DefListDDTable">The identifier of the </span><span class="f_ProductTable">Xtend</span><span class="f_DefListDDTable"> program executable file (case does not matter). For example: </span><span class="f_MonoSpTable">&lt;program&gt;xtend&lt;/program&gt;</span><span class="f_DefListDDTable">.</span>
<span class="f_DefListDDTable">The identifier of the </span><span class="f_ProductTable">Xtend</span><span class="f_DefListDDTable"> program executable file (case does not matter). For example: </span><span class="f_MonoSpTable">&lt;program&gt;xtend&lt;/program&gt;</span><span class="f_DefListDDTable">.</span>
Line 74: Line 69:
<span class="f_NoteContinueTable">To locate the </span><span class="f_MonoSpTable">Path</span><span class="f_NoteContinueTable"> variable specification on a Windows 7 workstation, find the Control Panel (say, Start menu &gt; Settings &gt; Control Panel), then select System &gt; System advanced settings &gt; Advanced tab &gt; Environment Variables button &gt; System variables &gt; Path, then click Edit to see the full specification of the </span><span class="f_MonoSpTable">Path</span><span class="f_NoteContinueTable"> variable. </span>
<span class="f_NoteContinueTable">To locate the </span><span class="f_MonoSpTable">Path</span><span class="f_NoteContinueTable"> variable specification on a Windows 7 workstation, find the Control Panel (say, Start menu &gt; Settings &gt; Control Panel), then select System &gt; System advanced settings &gt; Advanced tab &gt; Environment Variables button &gt; System variables &gt; Path, then click Edit to see the full specification of the </span><span class="f_MonoSpTable">Path</span><span class="f_NoteContinueTable"> variable. </span>
|}
|}


</div>
</div>
<span class="f_ListContinue">When complete, your configuration file should have a structure like the following: </span>
: When complete, your configuration file should have a structure like the following:  


<p class="syntax"><span class="f_CodeExList">&lt;debuggerConfig version=&quot;1.0&quot;&gt;</span>
<p class="syntax"><span class="f_CodeExList">&lt;debuggerConfig version=&quot;1.0&quot;&gt;</span>
Line 98: Line 92:
<span class="f_CodeExList">&lt;/debuggerConfig&gt; </span></p>
<span class="f_CodeExList">&lt;/debuggerConfig&gt; </span></p>


# <span class="f_ListNum1">Save and close the file. </span>
: 3. <span class="f_ListNum1">Save and close the file. </span>


=== Test the configuration ===
=== Test the configuration ===
<span class="f_Para">In the Debugger Client, edit a procedure. </span>
<span class="f_Para">In the Debugger Client, edit a procedure. </span>
1. <span class="f_ListNum1">Restart the Debugger Client.</span>
# <span class="f_ListNum1">Restart the Debugger Client.</span>
2. <span class="f_ListNum1">Load a procedure in the </span><span class="f_GUIlabel">Source Code</span><span class="f_ListNum1"> tab of the Debugger Client:</span>
# <span class="f_ListNum1">Load a procedure in the </span><var>Source Code</var><span class="f_ListNum1"> tab of the Debugger Client:</span>
* <span class="f_Product">Janus Debugger</span><span class="f_ListBul2">: From your web browser, invoke a URL that includes a procedure. </span>
## <var>Janus Debugger</var><span class="f_ListBul2">: From your web browser, invoke a URL that includes a procedure. </span>
* <span class="f_Product">TN3270 Debugger</span><span class="f_ListBul2">: Issue the [[using_sirius_debug_cmd.html|TN3270 DEBUG ON]] command; then include a procedure from the </span><span class="f_Product">Model 204</span><span class="f_ListBul2"> command line. </span>
## <span class="f_Product">TN3270 Debugger</span><span class="f_ListBul2">: Issue the [[TN3270 DEBUG Syntax|TN3270 DEBUG ON]] command; then include a procedure from the </span><var>Model 204</var><span class="f_ListBul2"> command line. </span>
3. <span class="f_ListNum1">Right click a line of code, select </span><span class="f_GUIlabel">Line Information </span><span class="f_ListNum1">from the context menu, then click the </span><span class="f_GUIlabel">Edit</span><span class="f_ListNum1"> button on the pop up that opens.</span>
# <span class="f_ListNum1">Right click a line of code, select </span><var>Line Information </var><span class="f_ListNum1">from the context menu, then click the </span><var>Edit</var><span class="f_ListNum1"> button on the pop up that opens.</span>


<span class="f_Product">Xtend</span><span class="f_ListContinue"> should open, displaying in its working area the procedure that contains the code line that you right clicked. If it fails to do so, and you verified earlier that, by itself, </span><span class="f_Product">Xtend</span><span class="f_ListContinue"> successfully transfers files from the </span><span class="f_Product">Model 204</span><span class="f_ListContinue"> Online, begin your troubleshooting in the Debugger Client </span><span class="f_Monospace">debuggerConfig.xml</span><span class="f_ListContinue"> file settings for the </span><span class="f_Monospace">&lt;editor&gt;</span><span class="f_ListContinue"> element.  </span>
<var>Xtend</var><span class="f_ListContinue"> should open, displaying in its working area the procedure that contains the code line that you right clicked. If it fails to do so, and you verified earlier that, by itself, </span><var>Xtend</var><span class="f_ListContinue"> successfully transfers files from the </span><var>Model 204</var><span class="f_ListContinue"> Online, begin your troubleshooting in the Debugger Client </span><span class="term">debuggerConfig.xml</span><span class="f_ListContinue"> file settings for the </span><span class="term">&lt;editor&gt;</span><span class="f_ListContinue"> element.  </span>


[[Category:Debugger Home]]
[[Category:Debugger Home]]

Latest revision as of 14:40, 8 November 2022

To use Xtend while debugging, you define a Janus Web Server port and an APSY subsystem in the Online, as well as configuring the Xtend GUI and the Debugger Client on your workstation. Once this is complete, you can use Xtend with the Debugger, as described above in Using a local editor.

You must use version 2.11 or higher of Xtend. The details provided below are for version 2.11 using Janus Web Server.

The configuration steps below are described in this section. They assume the Debugger installation has been completed and tested, as described in Product Installation. The Xtend product installation and setup is also documented in greater detail in Help files provided with the product.

  1. Install and configure Xtend in your Model 204 Online
  2. Install and configure the Xtend GUI
  3. Update the Client configuration file
  4. Test the configuration

Install and configure Xtend in your Online

Skip to the next subsection (Install and configure the Xtend GUI) if Xtend is already installed at your site.

1. Download to your workstation two Xtend installation files (one for the Xtend GUI and one for the Model 204 subsystem and web port).
2. Set up a Model 204 subsystem (XTEND) to control Xtend processing.
Notes for doing this are provided in the XtendInstall.HLP file in the XtendInstall folder. See the "Xtend Apsy" section.
3. From the PC, run the Xtend installer executable (XtendInstall.exe), which will populate the XTEND subsystem files.
4. In the Online, run the XTEND.JANUS.DEFINE procedure in the XTENDPRC procedure file to start the Xtend Janus Web port.
The default port number for the non_SSL port is 7878; for the secure port it is 7879. Change these numbers if necessary for your site.

Install and configure the Xtend GUI

  1. If you will use Janus Debugger and have configured a proxy server for the Internet Explorer browser, update the proxy settings to provide a bypass for connections to the Xtend web port.
    1. From the Tools menu, select Internet Options; then select the Connections tab, and click the LAN Settings button.
    2. Locate the Proxy Server area, and click the Advanced button.
    3. In the Exceptions area, in the list box labeled "Do not use proxy server for addresses beginning with," specify the URL of the Xtend web server port you defined.
    4. Click OK as needed to close the multiple dialog boxes.
  2. Set up a remote connection to Model 204 from the Xtend GUI.
    1. Open the Xtend GUI executable file (Xtend.exe), and select Options</vavr> from the View menu.
    2. In the Options dialog box, select the Remote tab.
    3. In the grid in the main work area, specify a name for this connection and supply a Model 204 user ID, host name, and the web server port you defined, and click the Apply button.
    4. If you will use TN3270 Debugger, select the name (Caption) of the remote connection you just defined from the Default edit online when using TN3270 Debugger drop down list, then click the OK button.
    5. Optionally, review and update the settings in the other Options tabs.
  3. Add the names of the procedure files (and their privileges) whose procedures you will be editing with Xtend.  
  4. Select Administrator Functions from the Admin menu; then select the Files tab.
    1. In the File columns, name the procedure files that contain the procedures you want to make accessible from Xtend; in the Privileges column, select a privilege level.
    2. This information can alternatively be specified in the XTEND subsystem itself.
    3. Click the Save Details button, followed by the Close button.
      Note: For procedure files that have explicit passwords, you must either add the file name to the XTEND subsystem files listed in the Subsystem File Use screen in the Model 204 Subsystem Management facility, or you must modify a subroutine in the XTENDPRC procedure file (as described in the XtendInstall.HLP file).
  5. Test your connection.
    1. In the Procedure List dialog box, select the tab that is labeled with the name of your remote connection. A list of your procedures is retrieved and displayed.
    2. Display a test procedure's code (double click the procedure name), make some update, then save the updated procedure by clicking the Save File icon on the toolbar.
    3. In your Online, check that the updated procedure has replaced the original.
    4. If your connection test is successful, close Xtend.

Update the Debugger Client configuration file

Once Xtend is installed and configured for debugging, you enable the Debugger(s) to invoke it by adding an entry to the Debugger Client configuration file (debuggerConfig.xml). This file is installed in the same directory as the Debugger Client executable file, and it is initially configured as part of the Debugger Client installation.

To update the file:

  1. Open the debuggerConfig.xml file in a text editor.
  2. Add an <editor> element (bounded by an <editor> start tag and an <\editor> end tag) at the same level (as a sibling of) the existing <serverList> element.
Include these <editor> subelements, and specify values for them as described in the Comment section below:
Subelement Comment
<program></program>

The identifier of the Xtend program executable file (case does not matter). For example: <program>xtend</program>.

Note: If the Windows system variable Path does not include the folder path that points to the Xtend executable (for example, C:\Program Files\Xtend), either add it to the Windows variable now, or specify the folder path before the executable file name in the <program> value.

To locate the Path variable specification on a Windows 7 workstation, find the Control Panel (say, Start menu > Settings > Control Panel), then select System > System advanced settings > Advanced tab > Environment Variables button > System variables > Path, then click Edit to see the full specification of the Path variable.

When complete, your configuration file should have a structure like the following:

<debuggerConfig version="1.0">    <serverList>        .        .        .    </serverList>    <proxy>        .        .        .    </proxy>    <editor>       <program>xtend</program>    </editor>        .        .        . </debuggerConfig> 

3. Save and close the file.

Test the configuration

In the Debugger Client, edit a procedure.

  1. Restart the Debugger Client.
  2. Load a procedure in the Source Code tab of the Debugger Client:
    1. Janus Debugger: From your web browser, invoke a URL that includes a procedure.
    2. TN3270 Debugger: Issue the TN3270 DEBUG ON command; then include a procedure from the Model 204 command line.
  3. Right click a line of code, select Line Information from the context menu, then click the Edit button on the pop up that opens.

Xtend should open, displaying in its working area the procedure that contains the code line that you right clicked. If it fails to do so, and you verified earlier that, by itself, Xtend successfully transfers files from the Model 204 Online, begin your troubleshooting in the Debugger Client debuggerConfig.xml file settings for the <editor> element.