thanks Keir,

a lot more info there. was hard to fins anything on this type of debugging

thanks again

john

Keir wrote:
Hi John,

'-log [my file path]' is command line argument that can be added when
launching the Maya executable. When enabled it creates a log file for
Maya's stdout and stderr. As it is a command line argument it has
nothing at all to do with your .env file.

Example (for windows):
maya.exe -log c:\debug.log


There are a couple of other debug options that can be added to
your .env file.

MAYA_DEBUG_ENABLE_CRASH_REPORTING is an environmental variable that
when set to 1 will cause Maya to try dumping debug files to your %temp
% directory. It dumps stack traces and other things that maybe helpful
for debugging plugin crashes. As far as I know you can not change the
path that these files get written to.

MAYA_CMD_FILE_OUTPUT is also an environmental variable. When set to
the path of a log file it will output everything from the script
editor window into the log.

Also the logs can have any file name and extension you want, it makes
no difference to Maya.


Hope this was helpful,

Keir



On Jul 27, 4:14 pm, johnvdz <[email protected]> wrote:
sorry for the not so python question but i gather someone here must know
this.

OK I'm trying to do a debug for a file loading crash, dose anyone know
how to set this up properly.

i have

MAYA_DEBUG_ENABLE_CRASH_REPORTING 1

but your supposed to have a -log [my file path] in your .env file

i have tried many thing but its not working

so
"""

MAYA_DEBUG_ENABLE_CRASH_REPORTING 1
-log [/home/user/Desktop/log]

"""

or is it?
-log '/home/user/Desktop/log'

or /home/user/Desktop/log

and do i need to specify a file eg .txt?
i have found much info for this

any help would be great

anyway just an example of how this should be set in your .env file would
be great.

cheers

john


--
http://groups.google.com/group/python_inside_maya

Reply via email to