The dbmessagecommand is used to install monitors for certain message types, dumping debug information as they are sent so that the flow of messages can be examined.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
file (f) | unicode | ||
Destination file of the message monitoring information. Use the special names stdoutand stderrto redirect to your command window. As well, the special name msdevis available on NT to direct your output to the debug tab in the output window of Developer Studio. Default value is stdout.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
list (l) | bool | ||
|
|||
monitor (m) | bool | ||
|
|||
type (t) | unicode | ||
|
Derived from mel command maya.cmds.dbmessage
Example:
import pymel.core as pm
import maya.cmds as cmds
pm.dbmessage( m='on' ) # Enable monitoring of all messages
pm.dbmessage( l=True ) # Print all available messages and monitoring state
pm.dbmessage( f='msgs.txt' ) # Redirect all message output to the file "msgs.txt"
pm.dbmessage( t='dgNodeAdded', m='on' ) # Turn on monitoring for the "dgNodeAdded" message