I have a unique server application (not a website, not HTML- or browser-based) that offers extensibility through JavaScript scripts. I am supposed to be able to debug these scripts with Visual Studio's debugger using the Process Debug Manager.
Even though I have VS2010 properly installed and activated, when I use CoCreateInstance to call like this:
CoCreateInstance(CLSID_ProcessDebugManager, nil,
CLSCTX_INPROC_SERVER or CLSCTX_LOCAL_SERVER, IProcessDebugManager, _PDM);
I encounter the error $80070057 (E_INVALIDARG), which is not the expected behavior for CoCreateInstance according to the documentation. However, the documentation provides an alternative method using CoGetClassObject, but when I try that, I receive REGDB_E_CLASSNOTREG, indicating that the CLSID is not registered in the Registry.
What steps should I take to register VS2010's script debugger in the Registry so that I can successfully utilize the Process Debug Manager?