Rev 15185 | Rev 15653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15185 | Rev 15573 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | instance :<br/> $emph !debug The score of $$user is $$score $emphend |
7 | instance :<br/> $emph !debug The score of $$user is $$score $emphend |
8 | <br/> If the program execution tries to execute such a line, it will |
8 | <br/> If the program execution tries to execute such a line, it will |
9 | stop there, displaying an error message containing your string with |
9 | stop there, displaying an error message containing your string with |
10 | the variable names replaced by their values. In the above example, the |
10 | the variable names replaced by their values. In the above example, the |
11 | program displays for instance a debugging message containing <br/> |
11 | program displays for instance a debugging message containing <br/> |
12 | $emph The score of Ted Watson is 7$emphend |
12 | $emph The score of Ted Watson is 7$emphend |
13 | 13 | </li><li> |
|
14 |
|
14 | All files and line numbers processed when we issue a wims command |
15 | can be stored for debugging purposes in a special file named trace.txt |
15 | can be stored for debugging purposes in a special file named trace.txt |
16 | in the tmp/sessions/XXXX directory where XXXX is the session |
16 | in the tmp/sessions/XXXX directory where XXXX is the session |
17 | number. This debugging trace is in action each time the wims command |
17 | number. This debugging trace is in action each time the wims command |
18 | is executed from a server administrator IP and the debug mode is |
18 | is executed from a server administrator IP and the debug mode is |
19 | enabled (it is then written $emph tmp_debug=yes$emphend in |
19 | enabled (it is then written $emph tmp_debug=yes$emphend in log/wims.conf). |
20 | log |
20 | You can add a $emph tmp_debug_var$emphend variable to the log/wims.conf file |
- | 21 | and assign to it as values the list of variables whose evolution you want |
|
- | 22 | to know when running the program. You can also add a $emph tmp_debug_use_var$emphend |
|
21 | the log |
23 | variable to the log/wims.conf file and assign to it as values a list of variables: |
22 |
|
24 | each time one of this variable is used, its value is put in the debugging trace. |
23 | </li> |
25 | </li><li> |
24 | - | ||
25 |
|
26 | When the server is configured to be in debug mode, peripheral |
26 | software error messages are displayed at the bottom of the html page. |
27 | software error messages are displayed at the bottom of the html page. |
27 | </li> </ul> |
28 | </li> </ul> |