How to Remove/Strip Debug Info of an exe?

delphi package - madRes, madTools, madStrings, ...

How to Remove/Strip Debug Info of an exe?

Postby MarcT » Tue Jan 29, 2008 9:02 am

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
Posts: 4
Joined: Sat Dec 29, 2007 8:15 am

Postby madshi » Mon Feb 25, 2008 6:17 pm

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
Site Admin
Posts: 9477
Joined: Sun Mar 21, 2004 5:25 pm

Return to madBasic

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest