Debug CompiledCode / ScriptScope?

Apr 5, 2011 at 4:03 PM

I may be missing something obvious... I have a C# 4.0 (wpf & Silverlight) app that has lots of scripts stored in a database and executed via CompiledCode / ScriptScope objects.

Is there a way to step through these python scripts with the vs2010 debugger?

Coordinator
Apr 6, 2011 at 12:06 AM

You'll need to modify your ScriptRuntimeSetup options to set the Debug option to true and you'll also need to write the files out to disk somewhere (e.g. the temp directory) so that VS can find them and enable stepping through them.  When you create the ScriptSource you'll want to specify the filename that you wrote the files out to.

Apr 6, 2011 at 3:45 AM

Thanks Dino - I'll try it out.