To debug VCL for .NET source code, you must set certain project options that are not needed when debugging other types of applications. The options are off by default and must be specifically set.
To enable options for debugging VCL for .NET source code
- Open a VCL for .NET project.
- Choose ProjectOptionsCompiler.
- Check the Use debug DCUILs check box.
- Click OK.
- Select any Borland-produced assembly under References in the Project Manager.
- Right-click the assembly and choose Link in Delphi Units. This sets the Link Units property to True in the Object Inspector.
- Repeat the previous two steps for each CodeGear assembly that you want to debug.
You are now able to debug VCL for .NET source code.
Tip: You can use this procedure to debug VCL for .NET assemblies produced by a third party if the debug DCUILs for those assemblies are available.