Using Xtend with the Debugger: Difference between revisions
(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 |
||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
<span class="f_Para">To use </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 [[ | <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">[[ | # <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">[[ | # <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">[[ | # <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">[[ | # <span class="f_ListNum1">[[Using Xtend with the Debugger#Test the configuration|Test the configuration]]</span> | ||
=== Install and configure Xtend in your Online === | |||
<span class="f_Para">Skip to the next subsection ([[ | <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>< | 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 "Xtend Apsy" section.</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 "Xtend Apsy" section.</span> | ||
3. <span class="f_ListNum1">From the PC, run the </span>< | 3. <span class="f_ListNum1">From the PC, run the </span><var>Xtend</var><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> | ||
4. <span class="f_ListNum1">In the Online, run the XTEND.JANUS.DEFINE procedure in the XTENDPRC procedure file to start the </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="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> | ||
=== 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_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><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><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">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><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">In the </span><span class="f_GUIlabel">Exceptions</span><span class="f_ListNum2"> area, in the list box labeled "Do not use proxy server for addresses beginning with," specify the URL of the </span>< | ## <span class="f_ListNum2">In the </span><span class="f_GUIlabel">Exceptions</span><span class="f_ListNum2"> area, in the list box labeled "Do not use proxy server for addresses beginning with," specify the URL of the </span><var>Xtend</var><span class="f_ListNum2"> web server port you [[using_xtend.html#install_xtend_204host|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><span class="f_GUIlabel">OK</span><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_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_ListNum2">Open the </span><var>Xtend</var><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">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><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_ListNum1">In the grid in the main work area, specify a name for this connection and supply a </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><span class="f_GUIlabel">Apply</span><span class="f_ListNum2"> button. </span> | ||
## <span class="f_ListNum2">If you will use </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="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">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><span class="f_GUIlabel">Options</span><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_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><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">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_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><var>Xtend</var><span class="f_ListNum2">; in the </span><span class="f_GUIlabel">Privileges</span><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><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> | ||
'''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>< | '''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="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> | ||
Line 47: | Line 47: | ||
## <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_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_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="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 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> | ||
Line 57: | Line 57: | ||
# <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="f_Monospace">debuggerConfig.xml</span><span class="f_ListNum1"> file in a text editor.</span> | ||
# <span class="f_ListNum1">Add an </span><span class="f_Monospace"><editor></span><span class="f_ListNum1"> element (bounded by an </span><span class="f_Monospace"><editor></span><span class="f_ListNum1"> start tag and an </span><span class="f_Monospace"><\editor></span><span class="f_ListNum1"> end tag) at the same level (as a sibling of) the existing </span><span class="f_Monospace"><serverList></span><span class="f_ListNum1"> element.</span> | # <span class="f_ListNum1">Add an </span><span class="f_Monospace"><editor></span><span class="f_ListNum1"> element (bounded by an </span><span class="f_Monospace"><editor></span><span class="f_ListNum1"> start tag and an </span><span class="f_Monospace"><\editor></span><span class="f_ListNum1"> end tag) at the same level (as a sibling of) the existing </span><span class="f_Monospace"><serverList></span><span class="f_ListNum1"> element.</span> | ||
: Include these <span class="f_Monospace"><editor></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"><program></program> </span> | | <span class="f_DefListDDTable">'''<program></program>''' </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"><program>xtend</program></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"><program>xtend</program></span><span class="f_DefListDDTable">.</span> | ||
Line 74: | Line 73: | ||
<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 > 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 </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 > 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 </span><span class="f_MonoSpTable">Path</span><span class="f_NoteContinueTable"> variable. </span> | ||
|} | |} | ||
</div> | </div> | ||
: When complete, your configuration file should have a structure like the following: | |||
<p class="syntax"><span class="f_CodeExList"><debuggerConfig version="1.0"></span> | <p class="syntax"><span class="f_CodeExList"><debuggerConfig version="1.0"></span> | ||
Line 98: | Line 96: | ||
<span class="f_CodeExList"></debuggerConfig> </span></p> | <span class="f_CodeExList"></debuggerConfig> </span></p> | ||
: 3. <span class="f_ListNum1">Save and close the file. </span> | |||
=== Test the configuration === | === Test the configuration === | ||
Line 105: | Line 103: | ||
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> | 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_Product">Janus Debugger</span><span class="f_ListBul2">: From your web browser, invoke a URL that includes a procedure. </span> | * <span class="f_Product">Janus Debugger</span><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">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><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> | 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> | ||
< | <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="f_Monospace">debuggerConfig.xml</span><span class="f_ListContinue"> file settings for the </span><span class="f_Monospace"><editor></span><span class="f_ListContinue"> element. </span> | ||
[[Category:Debugger Home]] | [[Category:Debugger Home]] |
Revision as of 14:24, 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.
- Install and configure Xtend in your Model 204 Online
- Install and configure the Xtend GUI
- Update the Client configuration file
- 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
- 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.
- From the Tools menu, select Internet Options; then select the Connections tab, and click the LAN Settings button.
- Locate the Proxy Server area, and click the Advanced button.
- 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.
- Click OK as needed to close the multiple dialog boxes.
- Set up a remote connection to Model 204 from the Xtend GUI.
- Open the Xtend GUI executable file (Xtend.exe), and select Options from the View menu.
- In the Options dialog box, select the Remote tab.
- 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.
- 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.
- Optionally, review and update the settings in the other Options tabs.
- Add the names of the procedure files (and their privileges) whose procedures you will be editing with Xtend.
- Select Administrator Functions from the Admin menu; then select the Files tab.
- 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.
- This information can alternatively be specified in the XTEND subsystem itself.
- 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).
- Test your connection.
- 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.
- 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.
- In your Online, check that the updated procedure has replaced the original.
- 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:
- Open the debuggerConfig.xml file in a text editor.
- 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:
- Janus Debugger: From your web browser, invoke a URL that includes a procedure.
- 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.