Debugging RavenClaw

From Olympus
(Difference between revisions)
Jump to: navigation, search
 
m
 
Line 5: Line 5:
 
- Examine the dialog.log file. You can put your own log entries in by...
 
- Examine the dialog.log file. You can put your own log entries in by...
  
- Add 'printf'-like statements in your !XyzDMTask.cpp file with the command <code>LOG("text")</code> in specific places (not anywhere in the Agent definitions!). Basically you can put it wherever you could also write a C++ command, for instance, within an ON_COMPLETION, or EXECUTE, and so on. If you want some printf like behavior, do something like <html><pre>LOG(FormatString("test = %d", test));</pre></html>
+
- Add 'printf'-like statements in your !XyzDMTask.cpp file with the command <code>LOG("text")</code> in specific places (not anywhere in the Agent definitions!). Basically you can put it wherever you could also write a C++ command, for instance, within an ON_COMPLETION, or EXECUTE, and so on. If you want some printf like behavior, do something like <pre>LOG(FormatString("test = %d", test));</pre>

Latest revision as of 23:05, August 28, 2005

There are various ways you can debug !RavenClaw:

- Shrink the font of the !XyzDMTask window, increase the buffer to 1000 lines, and increase it's height as well, to see what's going on in realtime

- Examine the dialog.log file. You can put your own log entries in by...

- Add 'printf'-like statements in your !XyzDMTask.cpp file with the command LOG("text") in specific places (not anywhere in the Agent definitions!). Basically you can put it wherever you could also write a C++ command, for instance, within an ON_COMPLETION, or EXECUTE, and so on. If you want some printf like behavior, do something like
LOG(FormatString("test = %d", test));
Personal tools