Advertisement

Strip debug info from angle scripts

Started by November 03, 2020 10:04 AM
8 comments, last by Cyndanera 4 years ago

Removed

Sign, Cyndanera

if you are using Microsoft Dev Studio IDE:

  • right-click on your project and go to Properties and navigate to Debug Info Format and set it to None

Then navigate to your Linker options find this Generate Debug Info and set it to NO

  • now Rebuild our code ?

Bear in mind that when u remove Debug info from your exe, if it were to crash outside of your IDE, you will be able to load the crash using J-I-T debugging but will not be able to debug with source code as it is stripped - but I think u probably already know that…

That's it… all the best ?

Advertisement

ddlox said:

if you are using Microsoft Dev Studio IDE:

That's it… all the best ?

Except he's using AngleScript and concerned about how to remove debug-symbols from their bytecode, not the c++ ?

OP posted in wrong forum though, and this mixup seems to happen every few months :D

Ah lol – okay no problem, thanks, understood ?

Removed

Sign, Cyndanera

Cyndanera said:
So how do I remove the debug info from bytecode like the path to my script? that is written in the bytecode?

Sorry, I don't know that, I was just clearing up the confusion. You should have your post moved to the “AngleScript"-forum though, so your chances of WitchLord (the AS-maintainer) seeing this is higher. EDIT: Seems its in the right place now. So you probably just have to wait a little longer.

Advertisement

Removed

Sign, Cyndanera

Hi Cyndanera,

When you save the bytecode you have the option to strip debug info, so it wont be saved.

http://www.angelcode.com/angelscript/sdk/docs/manual/classas_i_script_module.html#ac6cd95dd97cc6abf28ab4d82257f5aeb

Just set the second parameter to SaveByteCode to true.

It won't remove all info though. Names of symbols, e.g. variables and functions, will still be shown in clear text, as rhese are not considered debug info. If you need to hide this then your best option is to encrypt.the whole thing.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Removed

Sign, Cyndanera

This topic is closed to new replies.

Advertisement