Merge remote-tracking branch 'origin/6.1'
[scilab.git] / scilab / modules / core / help / ja_JP / 2_control_flow / pause.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) 2006-2008 - INRIA
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  * Copyright (C) 2020 - Samuel GOUGEON
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17           xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
18           xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
19           xml:lang="ja" xml:id="pause">
20     <refnamediv>
21         <refname>pause</refname>
22         <refpurpose>
23             は実行中の実行を一時的に一時停止し、コンソールでの指示を許可します
24         </refpurpose>
25     </refnamediv>
26     <refsynopsisdiv>
27         <title>呼出し手順</title>
28         <synopsis>
29             pause
30         </synopsis>
31     </refsynopsisdiv>
32     <refsection>
33         <title>説明</title>
34         <para>
35             <function>pause</function>モードに切り替えます;
36             関数のコードに挿入すると,<function>pause</function>は関数の実行を中断し,
37             <function>pause</function>のレベル (例: <literal>-1-&gt;</literal>)を
38             示すプロンプト記号が表示がされます.
39             この時,ユーザは新しいワークスペースにおり,
40             より低いレベルの変数(特にその関数内の全ての変数)が全て利用可能となっています 意図的に変更できます.
41         </para>
42         <para>
43             To resume the execution, enter <code>resume</code>.
44         </para>
45         <para>
46             このモードはコマンド <literal>abort</literal>により破棄することができます.
47         </para>
48         <note>
49             <function>pause</function> はデバッグの際に非常に有用です.
50         </note>
51     </refsection>
52     <refsection>
53         <title>例</title>
54         <programlisting role="example"><![CDATA[
55 function c = foo(b)
56     a = 42 + b
57     disp("Thanks to the pause, you can investigate if ''a'' has the right value");
58     disp("Values of local variables can be changed too if required.");
59     pause
60     c = a + 2
61 endfunction
62
63 a = 3;
64 foo(2)
65      ]]></programlisting>
66         <screen><![CDATA[
67 --> a = 3;
68 --> foo(2)
69   "Thanks to the pause, you can investigate if 'a' has the right value"
70   "Values of local variables can be changed too if required."
71
72 Type 'resume' or 'abort' to return to standard level prompt.
73
74 -1-> a
75  a  = 
76    44.
77
78 -1-> a = 0;
79
80 -1-> resume
81  ans  =
82    2.
83 ]]></screen>
84     </refsection>
85     <refsection role="see also">
86         <title>参照</title>
87         <simplelist type="inline">
88             <member>
89                 <link linkend="debug">debug</link>
90             </member>
91             <member>
92                 <link linkend="halt">halt</link>
93             </member>
94             <member>
95                 <link linkend="return">return</link>
96             </member>
97             <member>
98                 <link linkend="abort">abort</link>
99             </member>
100             <member>
101                 <link linkend="whereami">whereami</link>
102             </member>
103             <member>
104                 <link linkend="sleep">sleep</link>
105             </member>
106             <member>
107                 <link linkend="quit">quit</link>
108             </member>
109         </simplelist>
110     </refsection>
111     <refsection role="history">
112         <title>履歴</title>
113         <revhistory>
114             <revision>
115                 <revnumber>6.0.0</revnumber>
116                 <revdescription>
117                     The new values of local variables changed during a pause are now taken
118                     into account when resuming the execution with <literal>resume</literal>.
119                 </revdescription>
120             </revision>
121         </revhistory>
122     </refsection>
123 </refentry>