Launch AudioPluginHost in Visual Studio for debuging


#1

Hello,
sorry for stupid question. I tried to find in VS documentation, but I can’t figure it out.

I work on audio plugin. And I need to debug it on Windows 10 in VS 2017. But I can’t just run the plugin. I need some host.
On Mac I know how to set application (AudioPluginHost or Logic Pro) that should be launched when I hit run in debug mode. And I can debug my plugin by run it in launched application . But in VS I can’t figure it out how to to that?

For any help thanks in advance.
Best Regards.


#2

You can fire up a sequencer like reaper and attach the visual studio debugger to the reaper process (Attach to Process… in the Debug menu).


#3

Great thanks, it works, but isn’t there option to set it permanently that I don’t need to attache to process everytime I run the app?

And secod question, which is more important. Where in VS I can watch the output of DBG("debug info")?


#4

Maybe this helps: https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

I always attach. Not sure how to set a startup option in VS for a library project.


#5

OK, great thanks for your help.


#6

In the Visual Studio project settings (note that you should edit the plugin project settings, not the shared code project settings) :

Attaching after the host has already launched is not ideal because that way you can’t debug problems that appear when the host is scanning for new plugins when it starts.