Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» 关于CnDebugger的LogMsg
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: 关于CnDebugger的LogMsg
VictorWoo
灌水科科长
UID 1975
Digest Posts
1
Credits 114
Posts 98
点点分 114
Reading Access 10
Registered 2006-3-11
Location 福建
Status Offline
#1
Post at 2006-8-7 15:38
Profile
|
Site
|
Blog
|
P.M.
|
|
关于CnDebugger的LogMsg
看到说明中的“IFNDEF NDEBUG and IFDEF DEBUG”
我在自己工程单元的unit行下方加入
{$DEFINE DEBUG}
{$DEFINE NDEBUG} 两行
并将CnDebug单元拷贝到工程目录(因为同事没装cnpack)并uses
程序中加入 CnDebugger.LogMsg('bbb');
CnDebugViewer观察不到输出。如果改成TraceMsg就可以了,怎么回事?
帮助文档说得太简略,没有说明编译开关在哪里写的。
这样可能还有很多好用的功能会错过。如果有一个DEMO Project就很好了
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2006-8-10 08:52
Profile
|
Blog
|
P.M.
论坛数据库坏了,丢了一天的帖子。我重新说明一下吧。
DEBUG 需要在 Project Options 对话框里头设置,如果只在单元里头,则只对本单元有效,对CnDebug.pas无效,因此不行。
NDEBUG是用来阻止输出的,它会覆盖DEBUG。
我们在帮助文档中也会补充说明这一点。
demo在cnpack的CVS库中,等我们发布0.8.0后,会全部打包提供下载。
VictorWoo
灌水科科长
UID 1975
Digest Posts
1
Credits 114
Posts 98
点点分 114
Reading Access 10
Registered 2006-3-11
Location 福建
Status Offline
#3
Post at 2006-8-14 10:48
Profile
|
Site
|
Blog
|
P.M.
|
|
^_^ 备份工作做得好
ps.论坛服务器用什么做自动备份的?
我原先用Genie Backup,现在由于某种原因没法用了。。
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-23 01:08
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.009856 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats