分享
 
 
 

[轉載]Delphi 修改 VCL Source Code 需知

王朝delphi·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

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

◇ Delphi 修改 VCL Source Code 需知發信人: Tomm.bbs@csie.nctu (葛瑞菲), 信區: programming

標 題: Delphi 修改 VCL Source Code 需知

發信站: 交大資工鳳凰城資訊站 (Tue Aug 29 15:51:19 1995)

轉信站: cis_nctu!news.cis.nctu!news.csie.nctu!phoenix

Delphi 修改 VCL Source Code 需知

(0) 備份欲修改部份之 Source Code 以防萬一.

(1) 點選 Menu File|New Project 建立一個新的 Project

(2) 點選 Menu File|Add File.. 載入欲修改的 VCL Sources Code

(3) 設定 Menu Options|Project 下列開關

(否則您的VCL .DCU 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) 檢查 Unit 中是否已經 Uses 欲修改之 VCL Unit.

(5) 以Project Manager再次檢查欲修改的 Source Code Unit是否已

加入 Project 中.加入Project後的Unit會被優先使用,而不再使用

原本\DELPHI\LIB同名的 DCU.

(6) 修改完畢後點選Compile|Build All

(7) 待完畢無誤後,Close Project.將新產生之 DCU 從 \DELPHI\SOURCE\VCL 搬至

\DELPHI\LIB

(8) 點選 Option|Rebuild Library 重新產生 \DELPHI\BIN\COMPLIB.DCL.

(9) 撰寫測試程式試之.

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. \RTLHappy Debugging!

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有