Debugging into C# code from other application

前端 未结 2 765
Happy的楠姐
Happy的楠姐 2021-01-23 17:26

I\'m loading a dll (c#) from QTP. Is it possible to debug the c# code when the qtp test starts.

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-23 18:26

    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.

提交回复
热议问题