Most of my applications are a combination of VB.NET and Adobe Flash, such that the VB application is displaying a Flash file inside the main form (using Adobe's COM object). The VB application is communicating with the Flash file via the ActionScript ExternalInterface and FSCommands (using XML strings).
I'm having a hard time debugging the applications, since when an error occurs withing the Flash file (due to a bug in the ActionScript code) I'm getting a non-informative exception.
What I'd like to do is to debug both codes at once. At the very least I'd like to see the runtime error output as it is shown when I'm working with Adobe Flash. At the best scenario, I'd like to be able to hook my VB.NET code with the Actionscript code such that I can use breakpoints in both.
How can this be done?
Edit: Environment: I'm using Visual Studio 2008 and Adobe Flash CS4.