how to step into RTL/VCL using Delphi 7

末鹿安然 提交于 2019-12-07 12:08:16

问题


When debugging using the Delphi 7 IDE how can I step into code in the program files/borland/delphi7/source folder?

Sounds like a dumb question, but inquiring minds want to debug. (not that I think anything is wrong with the source, I just want to know why for the 9000th time I can't assign a TJpegImage to a TjpegImage).


回答1:


Make sure you have the "Use debug dcus" option enabled in the Project Options, and the VCL source folder is in the Debugger's Source path.

As for why you cannot assign a TJPEGImage to a TJPEGImage, that would normally only happen if you are trying to pass a TJPEGImage object across a DLL boundary without the use of runtime packages, thus the app and DLL are doing internal comparisons against different copies of the RTL, causing the is operator (ie: ASource is TJPEGImage) to return False where it would normally report True instead.




回答2:


Did you added the RTL/VCL source path to debug units path? Also, my Delphi 7 asks me to provide location of source file I want to step into if it's not in the path ... so should yours do :)



来源:https://stackoverflow.com/questions/3136101/how-to-step-into-rtl-vcl-using-delphi-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!