LoadWatch command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "__TOC__ {| |width="50%"| '''Action:''' |width="50%"| <span class="f_Para">Restores from a local </span><span class="f_Monospace">.watch</span><span class="f_Para"> file a lis...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:


{|
{|
|width="50%"| '''Action:'''
|width="125px"| '''Action:'''
|width="50%"|
|width="775px"|
<span class="f_Para">Restores from a local </span><span class="f_Monospace">.watch</span><span class="f_Para"> file a list of items to display in the </span><span class="f_GUIlabel">Watch Window</span><span class="f_Para">, as described in [[saving_restoring_watch_window.html|Saving and restoring Watch Window contents.]] </span>
<span class="f_Para">Restores from a local </span><span class="f_Monospace">.watch</span><span class="f_Para"> file a list of items to display in the </span><var>Watch Window</var><span class="f_Para">, as described in [[Saving and restoring Watch Window contents|Saving and restoring Watch Window contents.]] </span>


'''Syntax:'''
'''Syntax:'''
Line 10: Line 10:
<p class="syntax">loadWatch [</span><span class="f_MonoItalTable">watchfile</span><span class="f_CodeExample">]</p>
<p class="syntax">loadWatch [</span><span class="f_MonoItalTable">watchfile</span><span class="f_CodeExample">]</p>


<span class="f_Para">where the command's optional argument is the name of the </span><span class="f_Monospace">.watch</span><span class="f_Para"> file to be loaded. If you omit </span><span class="f_EmphItal">watchfile</span><span class="f_EmphItalTable">,</span><span class="f_Para"> a Windows file selection dialog box lets you select a saved </span><span class="f_Monospace">.watch</span><span class="f_Para"> file when the command executes. </span>
<span class="f_Para">where the command's optional argument is the name of the </span><span class="f_Monospace">.watch</span><span class="f_Para"> file to be loaded. If you omit </span><span class="term">watchfile</span><span class="f_EmphItalTable">,</span><span class="f_Para"> a Windows file selection dialog box lets you select a saved </span><span class="f_Monospace">.watch</span><span class="f_Para"> file when the command executes. </span>


<span class="f_Para">Otherwise, if you specify a </span><span class="f_EmphItal">watchfile</span><span class="f_Para"> argument (the </span><span class="f_Monospace">.watch</span><span class="f_Para"> extension may be omitted), the named file is used. </span>
<span class="f_Para">Otherwise, if you specify a </span><span class="term">watchfile</span><span class="f_Para"> argument (the </span><span class="f_Monospace">.watch</span><span class="f_Para"> extension may be omitted), the named file is used. </span>


<span class="f_Para">To locate the watch file you identify, the Client looks in the folder that contains the </span><span class="f_Monospace">JanusDebugger.exe</span><span class="f_Para"> file, [[change_location_client_work.html|by default]]. If the watch file cannot be found, an error is issued. </span>
<span class="f_Para">To locate the watch file you identify, the Client looks in the folder that contains the </span><span class="f_Monospace">JanusDebugger.exe</span><span class="f_Para"> file, [[Changing the location of Client work files|by default]]. If the watch file cannot be found, an error is issued. </span>


<span class="f_Para">You may also specify the watch file name in these ways:</span>
<span class="f_Para">You may also specify the watch file name in these ways:</span>


*As a [[working_with_macro_variables.html|macro variable]]. For example:  
*As a [[Working with macro variables|macro variable]]. For example:  
<p class="syntax"><span class="f_CodeExList">set &amp;a = &quot;foo&quot; </span>
<span class="f_CodeExList">loadWatch &amp;a </span></p>


:: <span class="f_CodeExList">set &amp;a = &quot;foo&quot; </span><br />
*As part of an absolute file system path, which </span><span class="term">must be enclosed in quotation marks.</span>
:: <span class="f_CodeExList">loadWatch &amp;</span>
<p class="syntax"><span class="f_CodeExList">loadWatch &quot;c:\temp\foo.watch&quot; </span></p>


*As part of an absolute file system path, which </span><span class="f_EmphItal">must be enclosed in quotation marks.</span>
<span class="f_Para">The </span><span class="f_Monospace">[[SaveWatch command|saveWatch]]</span><span class="f_Para"> command saves the </span><span class="f_GUIlabel">Watch Window</span><span class="f_Para"> contents to a watch file. </span>
 
:: <span class="f_CodeExList">loadWatch &quot;c:\temp\foo.watch&quot; </span>
 
<span class="f_Para">The </span><span class="f_Monospace">[[savewatch_cmd.html|saveWatch]]</span><span class="f_Para"> command saves the </span><span class="f_GUIlabel">Watch Window</span><span class="f_Para"> contents to a watch file. </span>
|-
|-
| '''Client menu:'''
| '''Client menu:'''

Latest revision as of 21:25, 30 January 2023

Action:

Restores from a local .watch file a list of items to display in the Watch Window, as described in Saving and restoring Watch Window contents.

Syntax:

loadWatch [watchfile]

where the command's optional argument is the name of the .watch file to be loaded. If you omit watchfile, a Windows file selection dialog box lets you select a saved .watch file when the command executes.

Otherwise, if you specify a watchfile argument (the .watch extension may be omitted), the named file is used.

To locate the watch file you identify, the Client looks in the folder that contains the JanusDebugger.exe file, by default. If the watch file cannot be found, an error is issued.

You may also specify the watch file name in these ways:

set &a = "foo"  loadWatch &a 

  • As part of an absolute file system path, which must be enclosed in quotation marks.

loadWatch "c:\temp\foo.watch" 

The saveWatch command saves the Watch Window contents to a watch file.

Client menu: Data Display > Load Watch
Introduced: Build 49