[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

Debugging options

Hi,

In Delphi 4 Pro, there are some debugging options (check boxes) at Project->Options->Compiler->Debugging, which are:

Debug information
Local symbols
Reference info (Y)
    Definitions only
Assertions (C)

Normally, whilst developing the project, all items are left checked (as they are by default).  However, when the time comes to compile and build the project to create the final release .exe that will be deployed to end users, should these items be unchecked or is it okay to leave them checked?

For security reasons, it is best for no debugging information to be present in the release .exe.  However, when compiling and building a project with/without the debugging options, the .exe file seems to be exactly the same number of bytes, therefore, what difference do these options make to the .exe?

I'm not using any assertions in the code I have written (unless any of Delphi's own units use them by default).

Thanks in Advance,

Richard
0
Richard2000
Asked:
Richard2000
1 Solution
 
mikelittlewoodCommented:
I dont personally switch stuff off when compiling the final version. I dont think it will make much difference at all, or at least I dont notice anything.
0
 
shaneholmesCommented:
I do not switch off either....

sholmes
0
 
smurffCommented:
I use upx to compress and encrypt when I compile. Search for it on google its very good.
Smurff
0
 
pritaeasSoftware EngineerCommented:
I normally turn it all off. Be careful about the messages you put in your assertions, if you leave them turned on. Users hate assert messages like: "Should not get here." or what once happened to me "Wrong data, idiot."

my €0.02
0
 
BlackTigerXCommented:
just checked what it thought it was... when you put those options Delphi includes debug information in the DCU files, not in the actual executable, that's why Delphi executables are always ready to go when you compile them

this would be an issue if you were writing components for example distributing .dcu files
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now