Using UltraEdit with the Debugger: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
__TOC__
<span class="f_Para">To use </span><var>UltraEdit</var><span class="f_Para"> while debugging, you must configure a Janus FTP server in the Online as well as configure </span><var>UltraEdit</var><span class="f_Para"> and the Debugger Client on your workstation. Once this is complete, you can use </span><span class="f_Product">UltraEdit</span><span class="f_Para"> with the Debugger, as described above in [[Using a local editor|Using a local editor]]. </span>
<span class="f_Para">To use </span><var>UltraEdit</var><span class="f_Para"> while debugging, you must configure a Janus FTP server in the Online as well as configure </span><var>UltraEdit</var><span class="f_Para"> and the Debugger Client on your workstation. Once this is complete, you can use </span><var>UltraEdit</var><span class="f_Para"> with the Debugger, as described above in [[Using a local editor|Using a local editor]]. </span>


<span class="f_EmphRed">Note:</span><span class="f_Notes"> You can use any version of </span><span class="f_Product">UltraEdit</span><span class="f_Notes"> that supports FTP Open. The details provided below are for version 12.10b and later. </span>
'''Note:'''<span class="f_Notes"> You can use any version of </span><var>UltraEdit</var><span class="f_Notes"> that supports FTP Open. The details provided below are for version 12.10b and later. </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]]. </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]]. </span>


# <span class="f_ListNum1">[[using_ultraedit.html#setup_ftp_in_m204|Set up a Janus FTP server in the Model 204 Online]] </span>
# <span class="f_ListNum1">[[Using UltraEdit with the Debugger#Set up a Janus FTP server in the Model 204 Online|Set up a Janus FTP server in the Model 204 Online]] </span>
# <span class="f_ListNum1">[[using_ultraedit.html#set_up_ue|Set up UltraEdit]] </span>
# <span class="f_ListNum1">[[Using UltraEdit with the Debugger#Set up UltraEdit|Set up UltraEdit]] </span>
# <span class="f_ListNum1">[[using_ultraedit.html#update_jdeb_cfgfile_ue|Update the Debugger Client configuration file]] </span>
# <span class="f_ListNum1">[[Using UltraEdit with the Debugger#Update the Debugger Client configuration file|Update the Debugger Client configuration file]] </span>
# <span class="f_ListNum1">[[using_ultraedit.html#test_configuration_ue|Test the configuration]] </span>
# <span class="f_ListNum1">[[Using UltraEdit with the Debugger#Test the configuration|Test the configuration]] </span>


=== Set up a Janus FTP server in the Model 204 Online === 
=== Set up a Janus FTP server in the Model 204 Online ===


<span class="f_Para">You must have the </span><var>Janus Sockets</var><span class="f_Para"> product enabled, and you should refer to the &quot;Janus FTP Server&quot; chapter in the </span><span class="term">Janus Sockets Reference Manual.</span><span class="f_Para"> </span>
<span class="f_Para">You must have the </span><var>Janus Sockets</var><span class="f_Para"> product enabled, and you should refer to the &quot;Janus FTP Server&quot; chapter in the </span><span class="term">Janus Sockets Reference Manual.</span><span class="f_Para"> </span>
Line 18: Line 18:


: 1. <span class="f_ListNum1">Create an FTP Server port with the JANUS DEFINE command: </span>
: 1. <span class="f_ListNum1">Create an FTP Server port with the JANUS DEFINE command: </span>
<p class="syntax"><span class="f_CodeExList">JANUS DEFINE FTPULTRA portnum FTPSERVER 8  -  </span>
<p class="syntax"><span class="f_CodeExList">JANUS DEFINE FTPULTRA portnum FTPSERVER 8  -  </span>
<span class="f_CodeExList">    AUDTERM                                -  </span>
<span class="f_CodeExList">    AUDTERM                                -  </span>
<span class="f_CodeExList">    BINDADDR xxx.xxx.xxx.xx </span></p>
<span class="f_CodeExList">    BINDADDR xxx.xxx.xxx.xx </span></p>
:: where <span class="term">portnum</span><span class="f_ListContinue"> will be the TCP port number for accessing your FTP Server, and </span><span class="term">xxx.xxx.xxx.xx</span><span class="f_ListContinue"> is the IP address on your </span><var>Model 204</var><span class="f_ListContinue"> host to which the port is bound. </span>
:: where <span class="term">portnum</span><span class="f_ListContinue"> will be the TCP port number for accessing your FTP Server, and </span><span class="term">xxx.xxx.xxx.xx</span><span class="f_ListContinue"> is the IP address on your </span><var>Model 204</var><span class="f_ListContinue"> host to which the port is bound. </span>


: 2. <span class="f_ListNum1">Create a mapping that provides FTP Write access to the procedure file. </span>
: 2. <span class="f_ListNum1">Create a mapping that provides FTP Write access to the procedure file. </span>
 
:: The following example gives Write access to the file to all users, for the port defined in the previous step. <span class="f_ListContinue">The JANUS FTP command is described in the </span><span class="term">Janus Sockets Reference Manual</span><span class="f_ListContinue">. </span>
<span class="f_ListContinue3">The following example gives Write access to the file to all users, for the port defined in the previous step. </span><span class="f_ListContinue">The JANUS FTP command is described in the </span><span class="f_EmphItal">Janus Sockets Reference Manual</span><span class="f_ListContinue">. </span>
:: In this example, MYPROCFILE is made the home folder, although it need not be (for example, if you already have a home folder set to something else).  
 
<span class="f_ListContinue">In this example, MYPROCFILE is made the home folder, although it need not be (for example, if you already have a home folder set to something else). </span>
 
<p class="syntax"><span class="f_CodeExList">JANUS FTP FTPULTRA ASSIGN /MYPROCFILE TO FILE MYPROCFILE </span>
<p class="syntax"><span class="f_CodeExList">JANUS FTP FTPULTRA ASSIGN /MYPROCFILE TO FILE MYPROCFILE </span>
<span class="f_CodeExList">JANUS FTP FTPULTRA HOME   /MYPROCFILE TO ALL  </span>
<span class="f_CodeExList">JANUS FTP FTPULTRA HOME   /MYPROCFILE TO ALL  </span>
Line 36: Line 31:


: 3. <span class="f_ListNum1">Start the FTP Server port: </span>
: 3. <span class="f_ListNum1">Start the FTP Server port: </span>
<p class="syntax">JANUS START FTPULTRA</p>
<p class="syntax">JANUS START FTPULTRA</p>


: 4. <span class="f_ListNum1">Issue the following command, and verify that your port is defined and started: </span>
: 4. <span class="f_ListNum1">Issue the following command, and verify that your port is defined and started: </span>
 
<p class="syntax">JANUS STATUS</p>
<span class="f_CodeExList">JANUS STATUS</span>


=== Set up UltraEdit ===
=== Set up UltraEdit ===


# <span class="f_ListNum1">Download and install a copy of </span><var>UltraEdit o</var><span class="f_Para">n the workstation that hosts the Debugger Client</span><span class="f_Product">.</span><span class="f_ListNum1"> </span>
# <span class="f_ListNum1">Download and install a copy of </span><var>UltraEdit o</var><span class="f_Para">n the workstation that hosts the Debugger Client</span>.
# <span class="f_ListNum1">Start </span><var>UltraEdit</var><span class="f_ListNum1">, and in the </span><var>File</var><span class="f_ListNum1"> menu, select </span><var>FTP</var><span class="f_ListNum1">, then </span><var>Open from FTP</var><span class="f_ListNum1">. </span>
# <span class="f_ListNum1">Start </span><var>UltraEdit</var><span class="f_ListNum1">, and in the </span><var>File</var><span class="f_ListNum1"> menu, select </span><var>FTP</var><span class="f_ListNum1">, then </span><var>Open from FTP</var><span class="f_ListNum1">. </span>
# <span class="f_ListNum1">From the </span><span class="f_GUIlabel">FTP Open</span><span class="f_ListNum1"> dialog, create an account that contains the information </span><span class="f_Product">UltraEdit</span><span class="f_ListNum1"> needs to access your procedure file via the Janus FTP Server you configured: </span>
# <span class="f_ListNum1">From the </span><span class="term">FTP Open</span><span class="f_ListNum1"> dialog, create an account that contains the information </span><var>UltraEdit</var><span class="f_ListNum1"> needs to access your procedure file via the Janus FTP Server you configured: </span>


<span class="f_ListNum2" style="display:inline-block;width:25px;margin-left:-25px">a.</span><span class="f_ListNum2">Click the </span><span class="f_GUIlabel">Accounts</span><span class="f_ListNum2"> button, and in the </span><span class="f_GUIlabel">FTP/SFTP Account Manager</span><span class="f_ListNum2"> dialog box, click the </span><span class="f_GUIlabel">Add Account</span><span class="f_ListNum2"> button: </span>
:: a. <span class="f_ListNum2">Click the </span><span class="term">Accounts</span><span class="f_ListNum2"> button, and in the </span><span class="term">FTP/SFTP Account Manager</span><span class="f_ListNum2"> dialog box, click the </span><span class="term">Add Account</span><span class="f_ListNum2"> button: </span>


[[File:ueftpacct1a_zoom60.gif|429x395px|UEftpAcct1a]]<span class="f_ListContinue3"> </span>
:: [[File:ueftpacct1a_zoom60.gif|429x395px|UEftpAcct1a]]<span class="f_ListContinue3"> </span>


<span class="f_ListNum2" style="display:inline-block;width:25px;margin-left:-25px">b.</span><span class="f_ListNum2">Provide values for the fields that are displayed in the </span><span class="f_GUIlabel">General</span><span class="f_ListNum2"> tab: </span>
:: b. <span class="f_ListNum2">Provide values for the fields that are displayed in the </span><span class="term">General</span><span class="f_ListNum2"> tab: </span>


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


{|
{|
| <span class="f_DefListTermTable">Account</span>
| <span class="f_DefListTermTable">'''Account'''</span>
| <span class="f_DefListDDTable">Identifies this set of FTP connection values to </span><span class="f_ProductTable">UltraEdit</span><span class="f_DefListDDTable">, and you must also specify this value in the Debugger Client configuration file. </span>
| <span class="f_DefListDDTable">Identifies this set of FTP connection values to </span><span class="f_ProductTable">UltraEdit</span><span class="f_DefListDDTable">, and you must also specify this value in the Debugger Client configuration file. </span>
|-
|-
| <span class="f_DefListTermTable">Protocol</span>
| <span class="f_DefListTermTable">'''Protocol'''</span>
| <span class="f_DefListDDTable">Leave the default value, </span><span class="f_MonoSpTable">FTP</span><span class="f_DefListDDTable">.</span>
| <span class="f_DefListDDTable">Leave the default value, </span><span class="f_MonoSpTable">FTP</span><span class="f_DefListDDTable">.</span>
|-
|-
| <span class="f_DefListTermTable">Server</span>
| <span class="f_DefListTermTable">'''Server'''</span>
| <span class="f_DefListDDTable">The DNS name of the </span><span class="f_ProductTable">Model 204</span><span class="f_DefListDDTable"> Online's host machine, or the IP address on your </span><span class="f_ProductTable">Model 204</span><span class="f_DefListDDTable"> host to which the Janus FTP port is bound (BINDADDR in the Janus FTP Server port [[using_ultraedit.html#setup_ftp_in_m204|definition]]). </span>
| <span class="f_DefListDDTable">The DNS name of the </span><var>Model 204</var><span class="f_DefListDDTable"> Online's host machine, or the IP address on your </span><var>Model 204</var><span class="f_DefListDDTable"> host to which the Janus FTP port is bound (BINDADDR in the Janus FTP Server port [[Using UltraEdit with the Debugger#Set up a Janus FTP server in the Model 204 Online|definition]]). </span>
|-
|-
| <span class="f_DefListTermTable">Port</span>
| <span class="f_DefListTermTable">'''Port'''</span>
| <span class="f_DefListDDTable">Replace the default value (21) with the port number you specified in the Janus FTP Server port [[using_ultraedit.html#setup_ftp_in_m204|definition]]. </span>
| <span class="f_DefListDDTable">Replace the default value (21) with the port number you specified in the Janus FTP Server port [[Using UltraEdit with the Debugger#Set up a Janus FTP server in the Model 204 Online|definition]]. </span>
|-
|-
| <span class="f_DefListTermTable">Username </span>
| <span class="f_DefListTermTable">'''Username''' </span>
| <span class="f_ProductTable">UltraEdit</span><span class="f_DefListDDTable"> accesses </span><span class="f_ProductTable">Model 204</span><span class="f_DefListDDTable"> with this user ID and the </span><span class="f_MonoSpTable">Password</span><span class="f_DefListDDTable"> value, below. Case does not matter. </span>
| <var>UltraEdit</var><span class="f_DefListDDTable"> accesses </span><var>Model 204</var><span class="f_DefListDDTable"> with this user ID and the </span><span class="term">Password</span><span class="f_DefListDDTable"> value, below. Case does not matter. </span>
|-
|-
| <span class="f_DefListTermTable">Password </span>
| <span class="f_DefListTermTable">'''Password''' </span>
| <span class="f_DefListDDTable">The password for </span><span class="f_MonoSpTable">Username</span><span class="f_DefListDDTable">, above. Case does not matter.</span>
| <span class="f_DefListDDTable">The password for </span><span class="f_MonoSpTable">Username</span><span class="f_DefListDDTable">, above. Case does not matter.</span>
|-
|-
| <span class="f_DefListTermTable">User Account </span>
| <span class="f_DefListTermTable">'''User Account''' </span>
| <span class="f_DefListDDTable">Any value specified here, or no value, is ignored by the Janus FTP Server.</span>
| <span class="f_DefListDDTable">Any value specified here, or no value, is ignored by the Janus FTP Server.</span>
|-
|-
| <span class="f_DefListTermTable">Initial Directory </span>
| <span class="f_DefListTermTable">'''Initial Directory''' </span>
| <span class="f_DefListDDTable">Your initial location upon connecting to the FTP Server. This must correspond to a folder you specified including the forward slash ( / )  that precedes it in a JANUS FTP </span><span class="f_MonoItalTable">pname</span><span class="f_DefListDDTable"> ASSIGN command in the [[using_ultraedit.html#setup_ftp_in_m204|setup]] of your Janus FTP Server. Case does not matter.</span>
| <span class="f_DefListDDTable">Your initial location upon connecting to the FTP Server. This must correspond to a folder you specified including the forward slash ( / )  that precedes it in a JANUS FTP </span><span class="term">pname</span><span class="f_DefListDDTable"> ASSIGN command in the [[Using UltraEdit with the Debugger#Set up a Janus FTP server in the Model 204 Online|setup]] of your Janus FTP Server. Case does not matter.</span>
|}
|}
</div>
</div>
<span class="f_ListNum2" style="display:inline-block;width:25px;margin-left:-25px">c.</span><span class="f_ListNum2">Click the </span><var>Apply</var><span class="f_ListNum2"> button, then click the </span><span class="f_GUIlabel">OK</span><span class="f_ListNum2"> button.</span>
:: c. <span class="f_ListNum2">Click the </span><var>Apply</var><span class="f_ListNum2"> button, then click the </span><span class="term">OK</span><span class="f_ListNum2"> button.</span>
 
:: On the <var>FTP Open</var><span class="f_ListContinue2"> page, your Account name displays in the </span><var>Account</var><span class="f_ListContinue2"> drop down list, and your Initial Directory value displays below that list. </span>
<span class="f_ListContinue2">On the </span><var>FTP Open</var><span class="f_ListContinue2"> page, your Account name displays in the </span><var>Account</var><span class="f_ListContinue2"> drop down list, and your Initial Directory value displays below that list. </span>


[[File:ueftpacct2a_zoom60.gif|383x113px|UEftpAcct2a]]<span class="f_ListContinue2"> </span>
:: [[File:ueftpacct2a_zoom60.gif|383x113px|UEftpAcct2a]]<span class="f_ListContinue2"> </span>


<span class="f_ListNum2" style="display:inline-block;width:25px;margin-left:-25px">d.</span><span class="f_ListNum2">Test your FTP connection: select the </span><var>Show Log</var><span class="f_ListNum2"> checkbox, then click the </span><var>Browse Site</var><span class="f_ListNum2"> button. </span>
:: d. <span class="f_ListNum2">Test your FTP connection: select the </span><var>Show Log</var><span class="f_ListNum2"> checkbox, then click the </span><var>Browse Site</var><span class="f_ListNum2"> button. </span>
::: The files in your procedure file should display in the central list box.
::: The FTP functions represented by the various buttons on the right side of the <var>FTP Open</var><span class="f_ListContinue2"> dialog box are all operational (except for </span><var>Create Dir </var><span class="f_ListContinue2">and </span><var>Permissions</var><span class="f_ListContinue2">, which Janus FTP does not support), so be cautious if you experiment further in this dialog box. For more information about what these buttons do, see the </span><var>UltraEdit</var><span class="f_ListContinue2"> online Help. </span>


<span class="f_ListContinue2">The files in your procedure file should display in the central list box. </span>
:: e. <span class="f_ListNum2">Select a default </span><var>Transfer Type</var><span class="f_ListNum2"> option: it will be associated with this account; then click the </span><var>Cancel</var><span class="f_ListNum2"> button to exit. </span>


<span class="f_ListContinue2">The FTP functions represented by the various buttons on the right side of the </span><var>FTP Open</var><span class="f_ListContinue2"> dialog box are all operational (except for </span><var>Create Dir </var><span class="f_ListContinue2">and </span><var>Permissions</var><span class="f_ListContinue2">, which Janus FTP does not support), so be cautious if you experiment further in this dialog box. For more information about what these buttons do, see the </span><var>UltraEdit</var><span class="f_ListContinue2"> online Help. </span>
: 4. <span class="f_ListNum1">Close </span><var>UltraEdit</var><span class="f_ListNum1">. </span>
 
<span class="f_ListNum2" style="display:inline-block;width:25px;margin-left:-25px">e.</span><span class="f_ListNum2">Select a default </span><var>Transfer Type</var><span class="f_ListNum2"> option: it will be associated with this account; then click the </span><var>Cancel</var><span class="f_ListNum2"> button to exit. </span>
 
4. <span class="f_ListNum1">Close </span><var>UltraEdit</var><span class="f_ListNum1">. </span>


=== Update the Debugger Client configuration file ===
=== Update the Debugger Client configuration file ===
Line 114: Line 102:


{|
{|
|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>
| <var>&lt;program&gt;&lt;/program&gt; </var>
|
|
<span class="f_DefListDDTable">The identifier of the </span><var>UltraEdit</var><span class="f_DefListDDTable"> program executable file (case does not matter). For example: </span><span class="f_MonoSpTable">&lt;program&gt;uedit32&lt;/program&gt;</span><span class="f_DefListDDTable">.</span>
<span class="f_DefListDDTable">The identifier of the </span><var>UltraEdit</var><span class="f_DefListDDTable"> program executable file (case does not matter). For example: </span><span class="term">&lt;program&gt;uedit32&lt;/program&gt;</span><span class="f_DefListDDTable">.</span>


'''Note:'''<span class="f_NotesTable"> If the Windows system variable </span><span class="f_MonoSpTable">Path</span><span class="f_NotesTable"> does not include the folder path that points to the </span><span class="f_ProductTable">UltraEdit</span><span class="f_DefListDDTable"> </span><span class="f_NotesTable">executable (for example, </span><span class="f_MonoSpTable">C:\Program Files\Ultra-Edit-32</span><span class="f_NotesTable">), either add it to the Windows variable now, or specify the folder path before the executable file name in the </span><span class="f_MonoSpTable">&lt;program&gt;</span><span class="f_NotesTable"> value. </span>
'''Note:'''<span class="f_NotesTable"> If the Windows system variable </span><span class="term">Path</span><span class="f_NotesTable"> does not include the folder path that points to the </span><var>UltraEdit</var><span class="f_DefListDDTable"> </span><span class="f_NotesTable">executable (for example, </span><span class="term">C:\Program Files\Ultra-Edit-32</span><span class="f_NotesTable">), either add it to the Windows variable now, or specify the folder path before the executable file name in the </span><span class="term">&lt;program&gt;</span><span class="f_NotesTable"> value. </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; Advanced system 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; Advanced system 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_DefListDDTable">&lt;account&gt;&lt;/account&gt; </span>
| <var>&lt;account&gt;&lt;/account&gt; </var>
|
|
<span class="f_DefListDDTable">The name of the </span><span class="f_ProductTable">UltraEdit</span><span class="f_DefListDDTable"> account you created to connect to the Janus FTP Server folder that contains the procedures you will be debugging. For example: </span><span class="f_MonoSpTable">&lt;account&gt;JALTEST&lt;/account&gt;</span><span class="f_DefListDDTable">.</span>
<span class="f_DefListDDTable">The name of the </span><var>UltraEdit</var><span class="f_DefListDDTable"> account you created to connect to the Janus FTP Server folder that contains the procedures you will be debugging. For example: </span><span class="f_MonoSpTable">&lt;account&gt;JALTEST&lt;/account&gt;</span><span class="f_DefListDDTable">.</span>


'''Note:'''<span class="f_NotesTable"> This value </span><span class="f_EmphBoldTable">is</span><span class="f_NotesTable"> case sensitive; it must exactly match the value specified in </span><span class="f_ProductTable">UltraEdit</span><span class="f_NotesTable">.</span>
'''Note:'''<span class="f_NotesTable"> This value </span>'''is'''<span class="f_NotesTable"> case sensitive; it must exactly match the value specified in </span><var>UltraEdit</var><span class="f_NotesTable">.</span>
|}
|}
</div>
</div>
<span class="f_ListContinue">When complete, your configuration file should have a structure like the following: </span>
<span class="f_ListContinue">When complete, your configuration file should have a structure like the following: </span>
Line 161: Line 147:


: 1. <span class="f_ListNum1">Restart the Debugger Client. </span>
: 1. <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>
: 2. <span class="f_ListNum1">Load a procedure in the </span><span class="term">Source Code</span><span class="f_ListNum1"> tab of the Debugger Client: </span>


* <var>Janus Debugger</var><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>
* <var>TN3270 Debugger</var><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>
* <var>TN3270 Debugger</var><span class="f_ListBul2">: Issue the [[TN3270 DEBUG Syntax#TN3270 DEBUG ON  |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><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>
: 3. <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>


<var>UltraEdit</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>UltraEdit</var><span class="f_ListContinue"> successfully transfers files from the FTP Server, 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="f_Monospace">&lt;editor&gt;</span><span class="f_ListContinue"> element.  </span>
<var>UltraEdit</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>UltraEdit</var><span class="f_ListContinue"> successfully transfers files from the FTP Server, 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>


'''Note:'''<span class="f_ListNote"> </span><var>UltraEdit</var><span class="f_ListNote"> 12.10</span><span class="f_EmphBold">a</span><span class="f_ListNote"> versions open the procedure to line 1 in your procedure code. 12.10</span><span class="f_EmphBold">b</span><span class="f_ListNote"> and later versions, as well as 12.0</span><span class="f_EmphItal">x</span><span class="f_ListNote"> versions, open the procedure to the same line number as that from which you invoke the edit in the Debugger Client. </span>
'''Note:'''<span class="f_ListNote"> </span><var>UltraEdit</var><span class="f_ListNote"> 12.10</span>'''a'''<span class="f_ListNote"> versions open the procedure to line 1 in your procedure code. 12.10</span>'''b'''<span class="f_ListNote"> and later versions, as well as 12.0</span><span class="term">x</span><span class="f_ListNote"> versions, open the procedure to the same line number as that from which you invoke the edit in the Debugger Client. </span>


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

Latest revision as of 17:47, 25 April 2023

To use UltraEdit while debugging, you must configure a Janus FTP server in the Online as well as configure UltraEdit and the Debugger Client on your workstation. Once this is complete, you can use UltraEdit with the Debugger, as described above in Using a local editor.

Note: You can use any version of UltraEdit that supports FTP Open. The details provided below are for version 12.10b and later.

The configuration steps below are described in this section. They assume the Debugger installation has been completed and tested, as described in Product Installation.

  1. Set up a Janus FTP server in the Model 204 Online
  2. Set up UltraEdit
  3. Update the Debugger Client configuration file
  4. Test the configuration

Set up a Janus FTP server in the Model 204 Online

You must have the Janus Sockets product enabled, and you should refer to the "Janus FTP Server" chapter in the Janus Sockets Reference Manual.

The following steps provide a simple example of JANUS commands you can use to set up a Janus FTP Server configured to access the procedures in the MYPROCFILE file:

1. Create an FTP Server port with the JANUS DEFINE command:

JANUS DEFINE FTPULTRA portnum FTPSERVER 8  -       AUDTERM                                -       BINDADDR xxx.xxx.xxx.xx 

where portnum will be the TCP port number for accessing your FTP Server, and xxx.xxx.xxx.xx is the IP address on your Model 204 host to which the port is bound.
2. Create a mapping that provides FTP Write access to the procedure file.
The following example gives Write access to the file to all users, for the port defined in the previous step. The JANUS FTP command is described in the Janus Sockets Reference Manual.
In this example, MYPROCFILE is made the home folder, although it need not be (for example, if you already have a home folder set to something else).

JANUS FTP FTPULTRA ASSIGN /MYPROCFILE TO FILE MYPROCFILE  JANUS FTP FTPULTRA HOME   /MYPROCFILE TO ALL   JANUS FTP FTPULTRA ALLOW  /MYPROCFILE WRITE TO ALL 

3. Start the FTP Server port:

JANUS START FTPULTRA

4. Issue the following command, and verify that your port is defined and started:

JANUS STATUS

Set up UltraEdit

  1. Download and install a copy of UltraEdit on the workstation that hosts the Debugger Client.
  2. Start UltraEdit, and in the File menu, select FTP, then Open from FTP.
  3. From the FTP Open dialog, create an account that contains the information UltraEdit needs to access your procedure file via the Janus FTP Server you configured:
a. Click the Accounts button, and in the FTP/SFTP Account Manager dialog box, click the Add Account button:
UEftpAcct1a
b. Provide values for the fields that are displayed in the General tab:
Account Identifies this set of FTP connection values to UltraEdit, and you must also specify this value in the Debugger Client configuration file.
Protocol Leave the default value, FTP.
Server The DNS name of the Model 204 Online's host machine, or the IP address on your Model 204 host to which the Janus FTP port is bound (BINDADDR in the Janus FTP Server port definition).
Port Replace the default value (21) with the port number you specified in the Janus FTP Server port definition.
Username UltraEdit accesses Model 204 with this user ID and the Password value, below. Case does not matter.
Password The password for Username, above. Case does not matter.
User Account Any value specified here, or no value, is ignored by the Janus FTP Server.
Initial Directory Your initial location upon connecting to the FTP Server. This must correspond to a folder you specified including the forward slash ( / )  that precedes it in a JANUS FTP pname ASSIGN command in the setup of your Janus FTP Server. Case does not matter.
c. Click the Apply button, then click the OK button.
On the FTP Open page, your Account name displays in the Account drop down list, and your Initial Directory value displays below that list.
UEftpAcct2a
d. Test your FTP connection: select the Show Log checkbox, then click the Browse Site button.
The files in your procedure file should display in the central list box.
The FTP functions represented by the various buttons on the right side of the FTP Open dialog box are all operational (except for Create Dir and Permissions, which Janus FTP does not support), so be cautious if you experiment further in this dialog box. For more information about what these buttons do, see the UltraEdit online Help.
e. Select a default Transfer Type option: it will be associated with this account; then click the Cancel button to exit.
4. Close UltraEdit.

Update the Debugger Client configuration file

Once UltraEdit 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 UltraEdit program executable file (case does not matter). For example: <program>uedit32</program>.

Note: If the Windows system variable Path does not include the folder path that points to the UltraEdit executable (for example, C:\Program Files\Ultra-Edit-32), 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 > Advanced system settings > Advanced tab > Environment Variables button > System variables > Path, then click Edit to see the full specification of the Path variable.

<account></account>

The name of the UltraEdit account you created to connect to the Janus FTP Server folder that contains the procedures you will be debugging. For example: <account>JALTEST</account>.

Note: This value is case sensitive; it must exactly match the value specified in UltraEdit.

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

<debuggerConfig version="1.0">    <serverList>        .        .        .    </serverList>    <proxy>        .        .        .    </proxy>    <editor>       <program>uedit32</program>       <account>JALTEST</account>    </editor>        .        .        . </debuggerConfig> 

3. Save and close the file.

Test the configuration

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.

UltraEdit 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, UltraEdit successfully transfers files from the FTP Server, begin your troubleshooting in the Debugger Client debuggerConfig.xml file settings for the <editor> element.  

Note: UltraEdit 12.10a versions open the procedure to line 1 in your procedure code. 12.10b and later versions, as well as 12.0x versions, open the procedure to the same line number as that from which you invoke the edit in the Debugger Client.