All of a sudden I cannot single step into the VCL source code anymore. The path to $(DELPHI)/Source/Vcl is in the Enviroment Options Direcotry and I also tried to add it to the Project Options > Debug Source Path but it did not help. It appears that $(DELPHI)/ is correct since I added a absolute path to the list and D5 reconized this was the $(DELPHI)/ path and changed it back to $(DELPHI)/Source/Vcl automaticlly. What happened?
Answer:
Here are two possible reasons for your situation:
1) You may accidentally have unchecked 'Use Debug DCUs' in Project | Options Compiler.
2) Perhaps you have switched 'Build with run-time packages' on.
Preventing the Debugger from stepping into VCL source
Does your debugger step into the VCL source code and you want to disable this? Or are you in the opposite situation, you need to step into through the VCL source code? Here are some pointers (for Delphi 5) what you should look at.
The following steps will stop the debugger from stepping into the VCL:
1) Go to menu 'Project | Options' and there click on tab 'Compiler'. Then uncheck the 'Use Debug DCUs' option under 'Debugging'. This is a project-specific setting.
2) Also check to be sure your Library path just points to LIB, not LIB/DEBUG. This is an environment option and will affect all projects.
3) Remove the VCL source directories from the Search Path. This is also a project specific setting. Choose under 'Project | Options' the tab 'Directories/Conditionals'. Delphi 5 allows to remove directories comfortably from the search path. The VCL source directories will look like
$(DELPHI)/Source/Vcl
There are problably be other directories below $(DELPHI)/Source, which you may want to remove as well. E.g. /RTL/