Hello there,
Microsoft was sensitive to this need when they designed the Active Scripting framework and included hooks to allow third-party applications to debug script code within their own application space. These hooks took the form of a set of COM interfaces (more than 45 of them) spread across the various components within the framework to help provide debugging capability.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--