I was looking for a way to use Microsofts CLR debugger 2003 (or Visual Studio .NET 2003) to smybolically (!) debug Vegas scripts. Actually I did find a way using a library, and this might be interesting to others as well. I described my path in this thread, but only in German (it's a German forum). But the source codes on the page should tell you enough. In short, it works like this:
the source code needs to be in a separate library, so it must be wrapped into a "package" structure in a separate file (that I called gugus.js) containing a static (pure virtual) class. Because global Vegas variables (like Vegas and ScritpFile) are not known there, they have to be passed to the class using a static init() function. The code to be debugged was stuffed into a static code() function. The init() function also contains the call to "debugger;" which just starts the debugger and sets a breakpoint. This source file must be compiled independently using the jsc instruction given in the other page. Note the /debug" option, which will produce a "gugus.pdb" file (containing link between source and virtual-machine instructions).
In addition, a wrapper script (called wrapper.js) plus its wrapper.xml need to be created and then called from within Vegas.
Though this is working, it is a lengthy process. So I'm wondering if there is maybe an easier way? All that's really needed (I think) is a way to tell Vegas to write a ".pdb" file when compiling the script. I tried to put something like
into a Vegas50.config and Vegas.config file, but this didn'^t make any difference. Any ideas/suggestions maybe?
the source code needs to be in a separate library, so it must be wrapped into a "package" structure in a separate file (that I called gugus.js) containing a static (pure virtual) class. Because global Vegas variables (like Vegas and ScritpFile) are not known there, they have to be passed to the class using a static init() function. The code to be debugged was stuffed into a static code() function. The init() function also contains the call to "debugger;" which just starts the debugger and sets a breakpoint. This source file must be compiled independently using the jsc instruction given in the other page. Note the /debug" option, which will produce a "gugus.pdb" file (containing link between source and virtual-machine instructions).
In addition, a wrapper script (called wrapper.js) plus its wrapper.xml need to be created and then called from within Vegas.
Though this is working, it is a lengthy process. So I'm wondering if there is maybe an easier way? All that's really needed (I think) is a way to tell Vegas to write a ".pdb" file when compiling the script. I tried to put something like
<configuration>
<system.runtime.remoting>
<application>
<compilation debug="true"/>
</application>
</system.runtime.remoting>
</configuration>
into a Vegas50.config and Vegas.config file, but this didn'^t make any difference. Any ideas/suggestions maybe?