Sender: Tomm.bbs@csie.nctu (GE ruifei), Region: programming title: Delphi modify VCL source code to know the sender site: jiaotong University (Aug 29 15:51:19 1995) Official Website: cis_nctu! News. CIS. nctu! News. csie. nctu! Phoenix Delphi needs to know (0) how to modify the VCL source code to avoid modifying the source code. (1) Select menu file | new project creates a new project (2) Select menu file | add file .. initialize the VCL sources code to be modified (3) set menu options | The following entrustment of the project (no, your VCL. DCU size is more than twice the original size ....) project Options-compiler dubugging group (1) debug information turn off (2) Local symbols turn off (3) symbol info turn off project options-linker EXE and DLL Options Group (1) optimize for size and load time turn on (2) include tdw debug info turn off (4) check whether the VCL unit in the Unit has been modified by uses. (5) check whether the source code unit to be modified has been added to the project by checking the project manager again. the Unit added to the project will be used first, instead of the original DCU with the same name as/Delphi/lib. (6) Select compile after modifying the hosts. | build all (7) Close the project after the hosts are unavailable. migrate the new DCU from/Delphi/source/VCL to/Delphi/lib (8). | rebuild library to generate/Delphi/bin/complib. DCL. (9) create a program named Ghost program. from: http://www.delphifaq.com/fq/q3056.shtml Cannot single step into VCL source code anymoreQuestion:
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.
from: http://www.delphifaq.com/fq/q3061.shtml Preventing the Debugger from stepping into VCL sourceDoes 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/ Happy Debugging!
|