Forum Discussion

rajendermehta's avatar
rajendermehta
Occasional Contributor
16 years ago

Debugging into dotnet DLLs.

Hello,



I am using a dotnet dll in testcomplete and I am calling a method included in this library.



Sequence of task:



1. Make reference of the assembly in Microsoft .Net CLR bridge in project properties.

2. Calling the method from dll (.net assembly)



e.g. dotNET["SQCenterDBAccess"]["SQCenterDBController"]["GetInstance"]()



3. I set a breakpoint in same method in visual studio code editor and attached visual studio to testComplete process.



Problem: While executing the script in TestComplete, I am not able to debug the code in dotnet assembly method. Breakpoint doesn't hit by the execution process.



Software Versions:



TestComplete: 7.52 Demo version

MS Visual Studio: 2008 team edition.



Please help me in "debugging into dotnet assembly" while execution from testComplete.



Thanks,

Rajender Mehta

Agilent Technologies.

13 Replies

  • Hi David,



    Thank you for sending the files.



    I think that I know the cause of the problem. By default, TestComplete uses the latest version on the CLR installed on the machine in order to host the CLR Bridge feature. Most probably, the latest version of CLR on your machine is 4.0. However, Visual Studio 2008 does not support debugging applications that use CLR newer than version 3.5.

    You can:



    1. Use Visual Studio 2010.

    2. Debug your assembly on a machine without .NET Framework 4 installed.

    3. Create a helper .NET application that will call the needed methods from your assembly in order to debug it.

  • pitachu's avatar
    pitachu
    Occasional Contributor
    thank you David for your quick response.

     

    I will request a copy of VS 2010 to be installed and re-evaluate TestComplete's .NET DLL debugging mechanism with it.