views:

71

answers:

2

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  A: 

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 :)

migajek
I just gave that a shot and nothing happened. Do you normally keep the source path in the Debug Path? If so, do you normally have the blue dot's indicative of being able to break upon that line in your RTL/VCL source directories?
Peter Turner
Yup, normally I do so, I see no reason why I shouldn't?
migajek
+5  A: 

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.

Remy Lebeau - TeamB
famous "Cannot assign a TFont to a TFont" ;) :)
migajek
I checked Use Debug DCU's, and put C:\Program Files\Borland\Delphi7\Source\Rtl\Sys, but if I hit a format function, it doesn't take me into sysutils. Nor do I get the blue dots after a rebuild that I see in my normal source.
Peter Turner
You either use BPLs (disable them!) or you make just compile (not full build) or you've messed up badly with options of IDE or the project.
Alexander