How can we debug an internal class ?? I am trying to debug ActivityHelper.cs from the
App_Data\CodeRepository\PX.Objects\CR folder.
I am able to debug other files such as ContactMaint from the same folder.
Debug an internal class
Best answer by Naveen Boga
Hi
I got the below information from other sources.
Yes, you can debug another assembly's internal class in C#. However, you need to make sure you have the necessary permissions and access to the assembly's code.
By default, internal classes are only accessible within the same assembly, so you would need to change the accessibility level to the public or make use of the "InternalsVisibleTo" attribute in the AssemblyInfo.cs file to allow access to the internal class (Helper Class) from another assembly. Iām NOT sure, whether Acumatica will allow us to change this.
Once you have the necessary access, you can use a debugger to step through the code and inspect the internal class as you would with any other class. Just keep in mind that changing the accessibility level of internal classes can impact the stability and security of the code, so use caution and make sure you understand the implications of making these changes.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.