Rev 15653 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15653 | Rev 17228 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
3 | <ul><li>You can add anywhere in a module file writen in wims language |
3 | <ul><li>You can add anywhere in a module file writen in wims language |
4 | (this excludes for instance shell files) a line starting with the |
4 | (this excludes for instance shell files) a line starting with the |
5 | command $emph !debug$emphend , followed by a string that may contain |
5 | command $emph !debug$emphend , followed by a string that may contain |
6 | variable names (preceeded by a $$ sign) to get their values. For |
6 | variable names (preceeded by a $$ sign) to get their values. For |
7 | instance :<br |
7 | instance :<br> $emph !debug The score of $$user is $$score $emphend |
8 | <br |
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 | </li><li> |
13 | </li><li> |
14 | All files and line numbers processed when we issue a wims command |
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 |