AWS Thinkbox Discussion Forums

how best to debug pre and post scripts?

Forgive me if this has been touched on somewhere else, but a forum search turned up little.

Is there a debug mode that will give me a console or the like for me to see print statements, progress, etc? or do I have to continue to just write out my own log files to find out how this is going? I feel like I’m tuning an engine using a couple of extendable chopsticks through the exhaust pipe. :wink:

Thanks in advance for the enlightenment.

-ctj

There currently isn’t a debug mode. It’s something we’ve wanted to add for a while now, and it’s still on the wish list.

What you could do is have a test job, and just keep requeuing the pre and post script tasks to test. I know it’s not ideal. :frowning:

+1 for an IDE in Deadline or Deadline hooks into an existing IDE such as VS2010+, via a Visual Studio Extension? or maybe Eclipse?
Awesome for scripting, testing, debugging, extending Deadline and even by the developers to provide support to clients! :slight_smile:

thanks for the response Russell. Yes, some form of feedback on scripts would be ideal, but I sympathize with getting the window built before picking drapes.

-ctj

Not sure if this might help, but you can have your scripts log to the Slave log using ClientUtils:

from Deadline.Scripting import *
...
ClientUtils.LogText( "hello world" )

Also, in Deadline 6, the pre/post scripts take the DeadlinePlugin object as a parameter, so you can write to the render log as well:

def __main__( deadlinePlugin ):
    deadlinePlugin.LogInfo( "this is some info" )
    deadlinePlugin.LogWarning( "THIS IS A WARNING!" )

That will at least give you some feedback.

Cheers,

  • Ryan

Ah, thank you. I’ll check that out.

-ctj

Privacy | Site terms | Cookie preferences