How to Remove/Strip Debug Info of an exe?

delphi package - madRes, madTools, madStrings, ...
Post Reply
Posts: 4
Joined: Sat Dec 29, 2007 8:15 am

How to Remove/Strip Debug Info of an exe?

Post by MarcT »

Hi all, dunno if I'm posting in the right section but let's give it a try, could someone (madshi or?) help me to remove/strip Debug Info of a compiled executable in Delphi? Like Pe Explorer of is doing,

NOTE that I know how to remove the debug info of my project, what I want to do is to be able to remove/strip debug info of any compiled exe.

thx in advance
Site Admin
Posts: 10686
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Sorry for the very late reply.

You'd need to dig into the PE structure (which is the format in which exes and dlls are stored in) and completely remove the "debug" section. See here for information about how the PE structure works: ... fault.aspx ... fault.aspx
Post Reply