I\'m loading a dll (c#) from QTP. Is it possible to debug the c# code when the qtp test starts.
You can insert a call to Debugger.Break()
and run the external application, when the break point will be reached Windows will offer you to debug the exception.
Choosing debug will enable you to run the code after the break inside Visual Studio and set break points inside your code.
In case you're using Vista/Win7 you might need to enable debugging - have a look at this post to learn how.