Go to the project options of the Delphi package.
Select the Compiler view on the left pane.
Set the build config to Debug mode.
- Optimization = off
- Stack frames = on
Now select the Linker view on the left pane.
- Debug information = on
- Local symbols = on
- Assertions = on
- Use debug DCUs = on
EXE and DLL options:
- Include TD32 debug info = on
- Include remote debug symbols = on
- Generate all C++Builder files (you should already have this selected)
You're done with the settings.
Rebuild your package and your main app and you should now be able to step into the Delphi source.