Configure web browser (Janus Debugger only): Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | <div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | ||
== Chrome or Internet Explorer (IE) == | |||
{| | {| | ||
|width="100%"| | |width="100%"| | ||
Line 37: | Line 29: | ||
* <span class="f_ListNumNote1">Use these instructions for the Client GUI or commands to use to set up Chrome or IE. </span> | * <span class="f_ListNumNote1">Use these instructions for the Client GUI or commands to use to set up Chrome or IE. </span> | ||
* <span class="f_ListNumNote1">Do </span><span class="term">not</span><span class="f_ListNumNote1"> manually modify the </span><span class="term">Internet Properties</span><span class="f_ListNumNote1"> dialog box invoked from the browser except to [[Configure web browser (Janus Debugger only)#Handling addresses specified to bypass the proxy server|specify proxy server bypass addresses]]. </span> | |||
* <span class="f_ListNumNote1">Do </span><span class="term">not</span><span class="f_ListNumNote1"> manually modify the </span><span class=" | |||
<span class="f_Para">For more information about the </span><var>Internet Properties</var><span class="f_Para"> dialog box, see [[Configure web browser (Janus Debugger only)#Navigating to and within the Internet Properties dialog box|Navigating to and within the Internet Properties dialog box]]. </span> | <span class="f_Para">For more information about the </span><var>Internet Properties</var><span class="f_Para"> dialog box, see [[Configure web browser (Janus Debugger only)#Navigating to and within the Internet Properties dialog box|Navigating to and within the Internet Properties dialog box]]. </span> | ||
Line 50: | Line 41: | ||
2. <span class="f_ListNum1">In the </span><var>IE Options</var><span class="f_ListNum1"> area, select the </span><var>proxy</var><span class="f_ListNum1"> option of </span><var>IE Mode.</var><span class="f_ListNum1"> </span> | 2. <span class="f_ListNum1">In the </span><var>IE Options</var><span class="f_ListNum1"> area, select the </span><var>proxy</var><span class="f_ListNum1"> option of </span><var>IE Mode.</var><span class="f_ListNum1"> </span> | ||
: The initial <var>IE Mode</var><span class="f_ListContinue"> setting is </span><span class="term">none</span><span class="f_ListContinue"> (browser settings are not maintained). </span> | |||
[[File:preferences23b_zoom50.gif|501x339px|preferences23b]] | |||
[[File:preferences23b_zoom50.gif|501x339px|preferences23b]] | |||
<span class="f_ListContinue"> | 3. <span class="f_ListNum1">Click the </span><span class="term">Done</span><span class="f_ListNum1"> button. </span> | ||
: Now, whenever<span class="f_NoteContinue"> you start the Client, the Internet Explorer proxy settings are modified automatically, for all running </span><span class="f_ListContinue">browser instances. </span> | |||
: The proxy maintenance feature remains on until you clear the checkbox (it persists between runs of the Client). When you shut down the Client or turn this feature off, the proxy modifications are removed, again for all instances of IE. | |||
: Only the following <span class="term">Local Area network (LAN) Settings</span><span class="f_ListContinue"> dialog box settings (see [[Configure web browser (Janus Debugger only)#Navigating to and within the Internet Properties dialog box|Navigating to and within the Internet Properties dialog box]]) are modified, and then restored: </span> | |||
* <span class="term">Use automatic configuration script</span><span class="f_Para"> (if specified) and </span><span class="term">Address</span><span class="f_Para"> values.</span><span class="f_ListBul2"> </span> | |||
* <span class="term">Use a proxy server . . .</span><span class="f_ListBul2"> and its address and port. </span> | * <span class="term">Use a proxy server . . .</span><span class="f_ListBul2"> and its address and port. </span> | ||
: The next subsection describes how to also include in the automatic maintenance any exception URLs specified to be bypassed by the proxy server. | |||
<span class="f_Para">The Client will automatically specify and enforce the proxy definition when the Client is started. When the Client is closed, the Client will restore the proxy settings to their state before the Client was started. </span> | <span class="f_Para">The Client will automatically specify and enforce the proxy definition when the Client is started. When the Client is closed, the Client will restore the proxy settings to their state before the Client was started. </span> | ||
Line 76: | Line 61: | ||
<span class="f_ListNote">It is an option of the automatic proxy maintenance to clear and save </span><span class="term">at Client opening</span><span class="f_ListNote"> any settings in the "Do not use proxy server for addresses beginning with:" box ([[Configure web browser (Janus Debugger only)#proxy_bypass|accessed this way]]</span><span class="f_Para">). The settings for these exceptions are then restored when the Debugger Client is closed (or when the feature is disabled). </span> | <span class="f_ListNote">It is an option of the automatic proxy maintenance to clear and save </span><span class="term">at Client opening</span><span class="f_ListNote"> any settings in the "Do not use proxy server for addresses beginning with:" box ([[Configure web browser (Janus Debugger only)#proxy_bypass|accessed this way]]</span><span class="f_Para">). The settings for these exceptions are then restored when the Debugger Client is closed (or when the feature is disabled). </span> | ||
<span class="f_Para">To enable this feature, you must select </span><span class="term">both</span><span class="f_ListContinue"> </span><span class="f_ListNum1">the </span><span class=" | <span class="f_Para">To enable this feature, you must select </span><span class="term">both</span><span class="f_ListContinue"> </span><span class="f_ListNum1">the </span><span class="term">IE Mode </span><span class="f_Para">option </span><span class="term">proxy </span><span class="term">and</span><span class="f_Para"> the </span><span class="term">Clear IE proxy override</span><span class="f_ListNum1"> </span><span class="f_Para">checkbox</span><span class="f_ListNum1"> </span><span class="f_Para">in the Debugger Client's </span><var>Preferences</var><span class="f_Para"> dialog box. The feature is off by default. </span> | ||
'''Note:'''<span class="f_Notes"> If you do enable this feature, then exception URLs you had specified in the </span><span class="f_ListContinue">[[Configure web browser (Janus Debugger only)#Navigating to and within the Internet Properties dialog box|Internet Properties]]</span><span class="f_Notes"> "Do not use proxy server for addresses beginning with:" box will now be routed to and passed through the Debugger when the Client is running. If the feature is not enabled (</span><span class="term">Clear IE proxy override</span><span class="f_Notes"> is not selected), the operating system handles these exception URLs and the Debugger never sees them. </span> | '''Note:'''<span class="f_Notes"> If you do enable this feature, then exception URLs you had specified in the </span><span class="f_ListContinue">[[Configure web browser (Janus Debugger only)#Navigating to and within the Internet Properties dialog box|Internet Properties]]</span><span class="f_Notes"> "Do not use proxy server for addresses beginning with:" box will now be routed to and passed through the Debugger when the Client is running. If the feature is not enabled (</span><span class="term">Clear IE proxy override</span><span class="f_Notes"> is not selected), the operating system handles these exception URLs and the Debugger never sees them. </span> | ||
Line 93: | Line 78: | ||
* <span class="f_ListBul1">Create the PAC script at Client startup. </span> | * <span class="f_ListBul1">Create the PAC script at Client startup. </span> | ||
* <span class="f_ListBul1">Specify the script location </span><span class="f_Para">in the </span><span class=" | * <span class="f_ListBul1">Specify the script location </span><span class="f_Para">in the </span><span class="term">Use automatic configuration script </span><span class="f_Para">> </span><var>Address</var><span class="f_Para"> value in the </span><span class="term">Local Area network (LAN) Settings</span><span class="f_ListContinue"> dialog box</span><span class="f_Para"> </span><span class="f_ListContinue">(see [[Configure web browser (Janus Debugger only)#navigate_internetprops|Navigating to and within the Internet Properties dialog box]])</span><span class="term">.</span><span class="f_ListBul1"> </span> | ||
* <span class="f_ListBul1">Run the script each time the browser invokes a URL. </span> | * <span class="f_ListBul1">Run the script each time the browser invokes a URL. </span> | ||
Line 108: | Line 93: | ||
* <span class="term">From the Client GUI:</span><span class="f_ListBul1"> </span> | * <span class="term">From the Client GUI:</span><span class="f_ListBul1"> </span> | ||
1. <span class="f_ListNum2">Select </span><span class=" | 1. <span class="f_ListNum2">Select </span><span class="term">Preferences</span><span class="f_ListNum2"> from the </span><span class="term">File</span><span class="f_ListNum2"> menu, and locate the </span><span class="term">IE Options</span><span class="f_ListNum2"> area. </span> | ||
2. <span class="f_ListNum2">In the </span><span class=" | 2. <span class="f_ListNum2">In the </span><span class="term">IE Mode</span><span class="f_ListNum2"> box, select either </span><span class="term">newPac</span><span class="f_ListNum2"> or </span><span class="term">mergedPac</span><span class="f_ListNum2">: </span> | ||
* <span class=" | * <span class="term">newPac</span><span class="f_ListBul3"> generates a PAC file from </span><span class="f_Monospace">debuggerConfig.xml</span><span class="f_ListBul3"> settings and it modifies the [[Configure web browser (Janus Debugger only)#Navigating to and within the Internet Properties dialog box|Internet Properties dialog box]] settings to point to the file. Any existing designated PAC file is ignored. </span> | ||
* <span class=" | * <span class="term">mergedPac</span><span class="f_ListBul3"> generates a PAC file like </span><span class="term">newPac</span><span class="f_ListBul3"> does, but it merges the freshly generated file with any existing PAC file. </span> | ||
<span class="f_ListContinue2">Both </span><span class=" | <span class="f_ListContinue2">Both </span><span class="term">newPac</span><span class="f_ListContinue2"> and </span><span class="term">mergedPac</span><span class="f_ListContinue2"> enable the </span><span class="term">PAC Options</span><span class="f_ListContinue2"> button if the following are true (as described in </span><span class="f_ListBul3">the next section,</span><span class="f_ListContinue2"> </span><span class="f_ListBul3">[[Configure web browser (Janus Debugger only)#Setting up an HTTP server for PAC files|Setting up an HTTP server for PAC files]]):</span><span class="f_ListContinue2"> </span> | ||
* <span class="f_ListBul3">A supporting web server is defined and running. </span> | * <span class="f_ListBul3">A supporting web server is defined and running. </span> | ||
* <span class="f_ListBul3">The HTTP file location is identified in the Debugger configuration file. </span> | * <span class="f_ListBul3">The HTTP file location is identified in the Debugger configuration file. </span> | ||
3. <span class="f_ListNum2">Click the </span><span class=" | 3. <span class="f_ListNum2">Click the </span><span class="term">PAC Options</span><span class="f_ListNum2"> button to display the </span><span class="term">PAC Options</span><span class="f_ListNum2"> dialog: </span> | ||
[[File:Pacoptions.png|349x102px|PacOptions]] | |||
: Select <span class="f_Monospace">file://URL</span><span class="f_ListContinue2"> or </span><span class="f_Monospace">http://URL</span><span class="f_ListContinue2"> to set the delivery mode for the PAC file. A file-mode URL is the default. </span> | |||
<span class="f_ListContinue2">If http, The Client instantly tests an HTTP PUT and GET of a verification file to and from the designated PAC file </span><span class="f_ListBul3">[[Configure web browser (Janus Debugger only)#Setting up an HTTP server for PAC files|HTTP server]]</span><span class="f_ListContinue2">. The Client then displays a </span><span class="f_ListNum1">[[Status bar|Status bar]]</span><span class="f_ListContinue2"> message like the following which reports the result of the test: </span> | <span class="f_ListContinue2">If http, The Client instantly tests an HTTP PUT and GET of a verification file to and from the designated PAC file </span><span class="f_ListBul3">[[Configure web browser (Janus Debugger only)#Setting up an HTTP server for PAC files|HTTP server]]</span><span class="f_ListContinue2">. The Client then displays a </span><span class="f_ListNum1">[[Status bar|Status bar]]</span><span class="f_ListContinue2"> message like the following which reports the result of the test: </span> | ||
Line 132: | Line 116: | ||
<span class="f_CodeExList2">HTTP PAC files can be used. </span> | <span class="f_CodeExList2">HTTP PAC files can be used. </span> | ||
4. <span class="f_ListNum2">Click the </span><span class=" | 4. <span class="f_ListNum2">Click the </span><span class="term">Done</span><span class="f_ListNum2"> button. </span> | ||
* <span class="term">By Client command:</span><span class="f_ListBul1"> </span> | * <span class="term">By Client command:</span><span class="f_ListBul1"> </span> | ||
: Issue the <span class="f_CodeExList">[[setIEMode command|setIEMode]]</span><span class="f_ListContinue"> command. </span> | |||
: Use the <span class="f_CodeExList">newPac</span><span class="f_ListContinue"> parameter to ignore any existing PAC file, or use the </span><span class="f_CodeExList">mergedPac</span><span class="f_ListContinue"> parameter to merge any existing PAC file with the PAC file freshly generated from the settings in the </span><span class="f_Monospace">debuggerConfig.xml</span><span class="f_ListContinue"> file. </span> | |||
:: If Build 63 or higher, the <<span class="f_Monospace">http</span><span class="f_ListContinue2"> parameter gets the PAC file via HTTP. The default </span><span class="f_Monospace">file</span><span class="f_ListContinue2"> parameter gets the PAC file from a folder on the local workstation. If you specify </span><span class="f_Monospace">http</span><span class="f_ListContinue2">, you must prepare a web server to service the PAC file; see the next section</span><span class="f_ListBul3">,</span><span class="f_ListContinue2"> </span><span class="f_ListBul3">[[Configure web browser (Janus Debugger only)#setup_http_server|Setting up an HTTP server for PAC files.]]</span><span class="f_ListContinue2"> </span> | |||
: Whether you use the GUI or a Client command, no restart of the browser or the Client is necessary. The browser<span class="f_Para"> will run the script for each URL that is invoked from the browser. </span> | |||
<span id="setting-up-an-http-server-for-pac-files"></span> | <span id="setting-up-an-http-server-for-pac-files"></span> | ||
Line 259: | Line 239: | ||
* <span class="f_ListBul1">From Chrome: </span> | * <span class="f_ListBul1">From Chrome: </span> | ||
# <span class="f_ListNum2">At the right end of the bar that contains the Omnibox navigation control, open the customization menu by clicking the three-stacked-lines icon: <br /> [[File:chromeconfigicon2.gif|37x37px|chromeConfigIcon2]] | # <span class="f_ListNum2">At the right end of the bar that contains the Omnibox navigation control, open the customization menu by clicking the three-stacked-lines icon: <br /> | ||
[[File:chromeconfigicon2.gif|37x37px|chromeConfigIcon2]] | |||
# <span class="f_ListNum2">In the menu, select </span><var>Settings</var><span class="f_ListNum2">. </span> | # <span class="f_ListNum2">In the menu, select </span><var>Settings</var><span class="f_ListNum2">. </span> | ||
# <span class="f_ListNum2">At the bottom of the </span><var>Settings</var><span class="f_ListNum2"> tab, click the </span><span class="term">Show advanced settings...</span><span class="f_ListNum2"> link. </span> | # <span class="f_ListNum2">At the bottom of the </span><var>Settings</var><span class="f_ListNum2"> tab, click the </span><span class="term">Show advanced settings...</span><span class="f_ListNum2"> link. </span> | ||
Line 270: | Line 253: | ||
<span class="term">To access the proxy server controls in the Internet Properties dialog box:</span><span class="f_Para"> </span> | <span class="term">To access the proxy server controls in the Internet Properties dialog box:</span><span class="f_Para"> </span> | ||
# <span class="f_ListNum1">Select the </span><span class=" | # <span class="f_ListNum1">Select the </span><span class="term">Connections</span><span class="f_ListNum1"> tab, and click the </span><span class="term">LAN Settings</span><span class="f_ListNum1"> button. </span> | ||
# <span class="f_ListNum1">In the </span><span class=" | # <span class="f_ListNum1">In the </span><span class="term">Local Area network (LAN) Settings</span><span class="f_ListContinue"> dialog box, l</span><span class="f_ListNum1">ocate the </span><span class="term">Proxy Server</span><span class="f_ListNum1"> area, then select the "</span>Use a proxy server"<span class="f_ListNum1"> checkbox: </span> | ||
## <span class="f_ListNum2">In the </span><span class=" | ## <span class="f_ListNum2">In the </span><span class="term">Address</span><span class="f_ListNum2"> box, the value the Client sets is: </span><span class="f_Monospace">localhost</span><span class="f_ListNum2">. </span> | ||
## <span class="f_ListNum2">In the </span><span class=" | ## <span class="f_ListNum2">In the </span><span class="term">Port</span><span class="f_ListNum2"> box, the Client sets the proxy listening port number discussed in the introduction above. </span> | ||
<span class="term">To access the proxy server bypass for certain connections:</span><span id="proxy_bypass" class="hmanchor"></span><span class="f_Para"> </span> | <span class="term">To access the proxy server bypass for certain connections:</span><span id="proxy_bypass" class="hmanchor"></span><span class="f_Para"> </span> | ||
# <span class="f_ListNum1">In the </span><span class=" | # <span class="f_ListNum1">In the </span><span class="term">Local Area network (LAN) Settings</span><span class="f_ListContinue"> dialog box </span><span class="term">Proxy Server</span><span class="f_ListNum1"> area, click the </span><span class="term">Advanced</span><span class="f_ListNum1"> button. </span> | ||
# <span class="f_ListNum1">In the </span><span class=" | # <span class="f_ListNum1">In the </span><span class="term">Exceptions</span><span class="f_ListNum1"> area, in the list box labeled "Do not use proxy server for addresses beginning with," specify the URLs of any locations the Debugger Client should ignore. </span> | ||
'''Note:'''<span class="f_Notes"> You can [[Configure web browser (Janus Debugger only)#bypass_proxy_server|set up the Client to automatically save and restore these addresses]]. </span> | '''Note:'''<span class="f_Notes"> You can [[Configure web browser (Janus Debugger only)#bypass_proxy_server|set up the Client to automatically save and restore these addresses]]. </span> | ||
|} | |} | ||
</div> | </div> | ||
<div style="text-align: left; text-indent: 0; page-break-after: avoid; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | <div style="text-align: left; text-indent: 0; page-break-after: avoid; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | ||
== Firefox == | |||
{| | {| | ||
|width="100%"| | |width="100%"| | ||
Line 315: | Line 289: | ||
<div style="text-align: left; text-indent: 0; page-break-after: avoid; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | <div style="text-align: left; text-indent: 0; page-break-after: avoid; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | ||
== Lynx == | |||
{| | {| | ||
|width="100%"| | |width="100%"| | ||
Line 340: | Line 306: | ||
<span class="f_Para">Once defined, the proxy remains in effect whether the Debugger Client is operating or not. </span> | <span class="f_Para">Once defined, the proxy remains in effect whether the Debugger Client is operating or not. </span> | ||
|} | |} | ||
</div> | </div> | ||
<div style="text-align: left; text-indent: 0; page-break-after: avoid; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | <div style="text-align: left; text-indent: 0; page-break-after: avoid; padding: 0 0 0 0; margin: 10px 0 10px 0;"> | ||
== Opera == | |||
{| | {| | ||
|width="100%"| | |width="100%"| |
Latest revision as of 19:15, 7 April 2023
Set up your web browser to use the Debugger Client as a proxy server. Information follows for these individual browser types:
You need the Janus Proxy port number you determined earlier in the preliminary tasks section. The default port is 8081, but you can change this by editing the debuggerConfig.xml file.
Once you define a proxy server for a browser:
- The Debugger Client must be running in order to operate that browser.
You will need to turn off the proxy in order to use the browser without the Debugger Client. Automatic toggling of the proxy definition is a Client option available for the Chrome and Internet Explorer browsers (only). Otherwise, it may be more convenient to point one browser at the Debugger Client proxy and use a different browser for your other Internet access.
- While you are debugging, you can use a second tab in your browser to access the Internet while another tab is occupied with User Language debugging. Secured (HTTPS) connections are not allowed. The occupied tab, the tab that invoked the Debugger, continues to remain unavailable for the duration of each debugging session.
Note: If it is not possible or not desirable to change the proxy settings on your web browser, an alternative way to debug web threads is to invoke the Debugger from a command you insert in procedures you run on Janus Web threads.
Chrome or Internet Explorer (IE)
The directions that follow describe Debugger Client modifications to the Internet Properties dialog box on the browser workstation, which affects both Chrome and IE Internet connections. Note: These instructions were originally prepared for early Client versions that had no features built into the Client to control the browser. It is now recommended that you:
For more information about the Internet Properties dialog box, see Navigating to and within the Internet Properties dialog box.
Automatically setting and removing the proxy definitionTo invoke the proxy service automatically without having to manually define it each time (Chrome and Internet Explorer only; for other browsers, you must maintain proxy settings manually): 1. Select Preferences from the Debugger Client File menu to display the Preferences dialog box. 2. In the IE Options area, select the proxy option of IE Mode.
3. Click the Done button.
The Client will automatically specify and enforce the proxy definition when the Client is started. When the Client is closed, the Client will restore the proxy settings to their state before the Client was started.
Handling addresses specified to bypass the proxy serverIt is an option of the automatic proxy maintenance to clear and save at Client opening any settings in the "Do not use proxy server for addresses beginning with:" box (accessed this way). The settings for these exceptions are then restored when the Debugger Client is closed (or when the feature is disabled). To enable this feature, you must select both the IE Mode option proxy and the Clear IE proxy override checkbox in the Debugger Client's Preferences dialog box. The feature is off by default. Note: If you do enable this feature, then exception URLs you had specified in the Internet Properties "Do not use proxy server for addresses beginning with:" box will now be routed to and passed through the Debugger when the Client is running. If the feature is not enabled (Clear IE proxy override is not selected), the operating system handles these exception URLs and the Debugger never sees them.
Using the Client as proxy exclusively for designated addressesYou can use the Debugger Client as a proxy server only for requests for the hosts (Onlines) specified in the Debugger configuration file, debuggerConfig.xml. The browser is directed to do this host filtering by a script you create (by Client command or UI checkbox). Once this feature is in effect, the Client will act as a proxy server for requests for hosts specified in the script but for no other browser requests. The JavaScript script (debuggerInternalPac.js) is called a Proxy Auto Config (PAC) file, and it is created by default in the Client work-file folder. If no such work folder is configured, the Client installation folder is used. The Client will automatically:
By default, the Client uses a file mode URL format (file://) to locate the PAC file. The Client can also use an HTTP mode URL format (http://), storing the file on a web server. You select file or HTTP mode from the Client GUI or by Client command, as described below. Note: Caution is recommended when working with PAC files. Errors are not well reported and have the potential to prevent the browser from operating. Be very careful if you edit or create your own PAC files. Here is a good reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file
Client steps to invoke the automatic creation and maintenance of a PAC file
1. Select Preferences from the File menu, and locate the IE Options area. 2. In the IE Mode box, select either newPac or mergedPac:
Both newPac and mergedPac enable the PAC Options button if the following are true (as described in the next section, Setting up an HTTP server for PAC files):
3. Click the PAC Options button to display the PAC Options dialog:
If http, The Client instantly tests an HTTP PUT and GET of a verification file to and from the designated PAC file HTTP server. The Client then displays a Status bar message like the following which reports the result of the test: HTTP PAC files can be used. 4. Click the Done button.
Setting up an HTTP server for PAC filesIf you will be using HTTP to access a PAC file, you must provide an HTTP (Web) server to hold the PAC files, and you must specify that server's location and port in the Client's configuration file. 1. Provide a web server.
begin variables are undefined local subroutine closeFile(%iFile is string len 8 input) * Close the file whose name is passed. %rc is float $resetn('MSGCTL', 6, %rc) $close('FILE ' with %iFile) $resetn('MSGCTL', 0, %rc) end subroutine local function openFile(%iFile is string len 8 input) is float * Open the file whose name is passed and return 0 for success or * non-zero for failure. %rc is float $resetn('MSGCTL', 6, %rc) openc file %iFile $resetn('MSGCTL', 0, %rc) return $status end function * Get and validate the command line argument: port number %args is object stringlist %args = %(system):arguments:unspace:parseLines(', ') %portNumber is float if (%args:count eq 0) then print 'No port number specified' stop elseif (%args:count > 1) then print 'Too many arguments' stop elseif (%args(1) is not like '/2-5(#)') then print 'Invalid port number' stop else %portNumber = %args(1) end if %pacRepo is string len 8 initial('JDPACREP') %worker is object daemon auto new %workForDaemon is object Stringlist auto new * See if memory file for PAC repository is there, if not create it if (%(local):openFile(%pacRepo) eq 0) then printText Memory file {%pacRepo} already present %(local):closeFile(%pacRepo) else printText creating memory file {%pacRepo} text to %workForDaemon = new ALLOCATE {%pacRepo} WITH MEMORY PAGES=300 CREATE {%pacRepo} PARAMETER BSIZE=1, DSIZE=250 END OPENC {%pacRepo} IN {%pacRepo} INITIALIZE CLOSE {%pacRepo} end text %worker:run(%workForDaemon):print end if * Set up a simple Janus web server with web rules for loading * serving and listing PAC files generated by the debugger client. %portName is string len 8 initial('JDPACSRV') * Get rid of any earlier one, so this script can be rerun as needed text to %workForDaemon = new JANUS DRAIN {%portName} JANUS DELETE {%portName} end text %worker:run(%workForDaemon) * Create the server and its rules text to %workForDaemon = new * Create a web server JANUS DEFINE {%portName} {%portNumber} WEBSERV 20 TRACE 7 * Allow PAC file upload via HTTP PUT of URL of format /pacman/xxx.js JANUS WEB {%portName} - ON PUT /PACMAN/*.JS OPEN FILE {%pacRepo} RECV *.JS BASE64 JANUS WEB {%portName} ALLOW PUT /PACMAN/*.JS * Provide HTTP GET access for URLs of format /pacman/xxx.js JANUS WEB {%portName} ON GET /PACMAN/*.JS OPEN FILE {%pacRepo} - SEND *.JS BINARY EXPIRE +0 * Start the web server JANUS START {%portName} end text %worker:run(%workForDaemon):print end Since the PAC files are temporary, they are stored in an in-memory file (not persistent between runs) which does not need any disk files, DD cards, etc. The PAC files are stored as Model 204 procedures. The name of a PAC file procedure created by the Client (see the following sections) is based on the IP number of the Client workstation to avoid conflicts. 2. Update debuggerConfig.xml.
<httpPacURL>http://pacServerHost:pacServerPortNum/pacman</httpPacURL> 3. Restart the Client, or just issue the retryHttpPac command to test your setup.
The following directions are provided primarily for information purposes. They show the controls that the Client modifies automatically for Chrome and IE, as described in the preceding subsections. It is recommended that you not make these modifications manually except for any proxy server bypass addresses. To access the Internet Properties dialog box:
To access the proxy server controls in the Internet Properties dialog box:
To access the proxy server bypass for certain connections:
Note: You can set up the Client to automatically save and restore these addresses. |
Firefox
To set up the proxy for Firefox browsers:
Once defined, the proxy remains in effect whether the Debugger Client is operating or not. |
Lynx
The Lynx character-mode browser is fast and handy for testing. To make it use a proxy, set the environment variable http_proxy to the full URL of the Janus proxy. Here is a Unix shell script example (running on a PC under Cygwin) that sets this variable and runs Lynx: #!/bin/bash http_proxy=http://127.0.0.1:8081 export http_proxy env lynx Note: The http:// is required. Once defined, the proxy remains in effect whether the Debugger Client is operating or not. |
Opera
To set up the proxy:
Once defined, the proxy remains in effect whether the Debugger Client is operating or not. |