I have a COM DLL project, and I am able to debug it (stop at breakpoints) in Delphi 2007 and XE8.
However, it seems to not be possible for the IDE to stop at breakpoints in Delphi 10 Seattle or 10.1 Berlin.
My steps of debugging:
Change to DEBUG (and check for those debug options ticked. e.g. Debug Information)
regsvr32 the project DLL under output directory
write a vbscript that simply creates the COM object and invoke its method
in the debugger, set a
Run
command-line usingc:\windows\syswow64\cscript.exe
for 32-bit orc:\windows\system32\cscript.exe
for 64-bit debuggingset the command-line parameter to run the vbscript.
set a breakpoint at the invoked method.
Hit F9
Expected: to stop at the breakpoint
In Delphi 2007 and XE8, all is OK, but I was not able to do it in Delphi Seattle or Berlin.
What could possible go wrong here? Are there any settings that I need to enable/disable in order to debug the COM DLL under Delphi's latest IDE versions?