Decoding the obfuscated stack trace information

Source: Internet
Author: User
Tags stack trace

When the obfuscated code outputs a stack of information, the method name is not recognized, which makes debugging difficult or even impossible.
Fortunately, when Proguard runs, it will output a <project_root>/bin/proguard/mapping.txt file that contains the original class, the method, and the name of the field being mapped to the obfuscated name.

The Retrace.bat script (Window) or retrace.sh script (Linux,mac OS X) can restore a garbled stack trace to a readable message.
It is located in the <sdk_root>/tools/proguard folder. The syntax for executing the retrace tool is as follows:

retrace.bat|retrace.sh [-verbose] mapping.txt [<stacktrace_file>]

For example:

Retrace.bat-verbose Mapping.txt Obfuscated_trace.txt

If you do not specify the <stacktrace_file>,retrace tool will be read from the standard input.

Decoding the obfuscated stack trace information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.