[Getting Started] You need to know how to modify VCL source code in Delphi

Source: Internet
Author: User
Document directory
  • Cannot single step into VCL source code anymore
  • Preventing the debugger from stepping into VCL Source

From: http://bbs.ee.ntu.edu.tw/boards/Programming/10/2/13.html

◇ Delphi: VCL source code modification required

     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 anymore
Question:

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 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/

Happy Debugging!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.