Wednesday, May 27, 2009

Dotfuscator StackViewer

Dotfuscator Community Edition is ok for lightly obfuscating your source code. Its not the best, but its free. Mmm, free stuff.

The gotcha is if a user sends you an exception with stack trace from your dotfuscated application, you need the full (expensive) version of Dotfuscator to view it. DFStack is a cheaper option, but it wouldn't work consistently for me.

I ended up writing my own stack decoder (its free, and you can use the source code)

http://www.1amstudios.com/products/dotfuscatorstackviewer/

1 comments:

andrewvin said...

Thank you for you tool, that is what we are looking for :-)

Small update to the code, it incorectly parse function with generic as a parameter.

void method(mygen < myspace.members > )

I move '<' upper and everything became OK.

internal string CanonicalizeMappingSignature(string signature)
{
<...>
for (int i = 0; i < args.Length; i++)
{
args[i] = args[i].Trim();
if (sb.Length > 0)
sb.Append(", ");
if (args[i].Contains("<"))
args[i] = args[i].Substring(0, args[i].IndexOf("<"));
if (args[i].Contains("."))
args[i] = args[i].Substring(args[i].LastIndexOf(".") + 1);
if (args[i].Contains(" "))
args[i] = args[i].Substring(0, args[i].IndexOf(" "));
if (args[i].Contains("/"))
args[i] = args[i].Substring(args[i].IndexOf("/")+1);
sb.Append(args[i]);
}
<...>
}

Post a Comment