Functions | |
| void | fill_tabs () |
| Used internally by TraversoDebugger. Align the output with the level of execution in a given moment. | |
| QString | get_tabs () |
| Used internally by TraversoDebugger. Get a " " (space) sequence whch aligns the output with the level of execution in a given moment,. | |
| void | more_tabs () |
| Used internally by TraversoDebugger. Increase one level of execution in output messages. | |
| void | less_tabs () |
| Used internally by TraversoDebugger. Decrease one level of execution in output messages. | |
| void | set_debug_level (int l) |
| Set the debug level. | |
| int | get_debug_level () |
| Used internally by TraversoDebugger. Returns true if debugOn flag is true. | |
| void | create_log (QString fn) |
| create a log file "fn" under home dir and enable copy of all debugging messagem to this file. | |
| void | close_log () |
| close the log file | |
| void | log (QString msg) |
| Used internally by TraversoDebugger. Feed the log file. | |
| bool | is_logging () |
| Used internally to check if output is stdout or a log file. | |
Variables | |
| int | ntabs = 0 |
| int | debugLevel = OFF |
| FILE * | logFile = (FILE*) 0 |
| QString | logFileName = 0 |
| bool | logging = false |
PENTER - Outputs a message when entering a method in level 1. Used in the FIRST line of a method; PEXIT - Outputs a message when leaving a method in level 1. Used in the LAST line of a method, except if the last line is a return statement (in this case is put immediately before the return statement PENTER2 - Same as PENTER for levels 1 and 2 PEXIT2 - Same as PEXIT for levels 1 and 2 PENTER3 - Same as PENTER for levels 1 2 and 3 PEXIT3 - Same as PEXIT for levels 1 2 and 3 PENTER4 - Same as PENTER for levels 1 2 3 and 4 PEXIT4 - Same as PEXIT for levels 1 2 3 and 4 PMESG(message) - Outputs a message in level 1 PMESG2(message) - Outputs a message in level 1 and 2 PENTERCONS - Outputs a message when entering a constructor in levels 2, 3, and 4. Similar to PENTER PEXITCONS - Outputs a message when leaving a constructor in levels 2, 3, and 4. Similar to PEXIT PENTERDES - Outputs a message when entering a destructor in levels 2, 3, and 4. Similar to PENTER PEXITDES - Outputs a message when leaving a destructor in levels 2, 3, and 4. Similar to PEXIT Same can be done for PENTERCONS2, PEXITCONS2, PENTERCONS3... and so on...
1.5.5