Log in

View Full Version : debug avisynth plugin in VS2010


mathmax
2nd August 2010, 18:25
Hello,

I would like to debug an avisynth plugin Visual Studio 2010.

I can see here how to debug in VC++ 6.0 but there is no explanation for VS 2010.
http://avisynth.org/mediawiki/Filter_SDK/Compiling_instructions#How_to_debug_Avisynth_plugins_.28for_MS_VC.2B.2B_6.0.29

My problem is at step 3 when I have to choose VirtualDub.exe to debug the plugin:

We will use VirtualDub.exe to debug your plugin. Go to Project tab, then select Settings -> Debug -> General -> Executable for debug session -> browse to a version of VirtualDub.exe and specify that:

There is no field called "Executable for debug session" in the settings...

Thank you in advance for any help.

AVIL
3rd August 2010, 01:27
Hi,

I use VC2008, but perhaps in 2010 will be the same. In the menubar clik on the tag Debug ("Depurar" in spanish version). This open a sub-menu with a option Associate to process... (or similar "Asociar al proceso..." in my version). A windows pops with all the process running. Choose virtualdub.exe and set a breakpoint. Here will stop in the next frame of the clip that uses the code debugged.

Good luck.

mathmax
3rd August 2010, 05:41
Thank you.

I solved my problem. I didn't want to attach a running process like you do but an application.
I just add the path to virtualdub in the "command" fields (settings > debugging) and it works perfectly.