[Post] decoda tutorial Lua Tuner

Source: Internet
Author: User

I have been paying attention to it since the release of decoda. This tool can be injected to the host.ProgramDebugging the Lua script, you can also set the breakpoint to observe the value of the variable, the function is very powerful.

The following describes how to use it.

First, find a program that uses Lua. Here I use Wireshark as an example. This is a very powerful network packet capture tool, and Wireshark uses Lua internally. If Wireshark is not available, Google it and download and install it. This is an open-source software.

There are two methods for debugging the host program using Lua: one is to start the Host Program from decoda, and the other is to start the Host Program first and then inject it with decoda.

This articleArticleThis section describes how to start a Host Program from decoda.

And click OK.

 

At this time, the wireshark program starts to run. Wait a moment and a init. Lua file will appear in the window on the left. This is the Lua file used by Wireshark. (Decoda can detect all the Lua files used by the program and display them in the left-side window)

 

Now you can. when a breakpoint is set in Lua, the breakpoint is displayed in disable_lua = true; do return end; this breakpoint can be seen by smart people. Only breakpoint can be set here, because the following statements are not executed unless you comment this sentence. Select Stop debugging in the Debug menu to exit debugging, and then select start debugging to restart debugging. At this time, the program will be directed to the line where you set the breakpoint.

 

The whole process is like this. You can enter the variables to be monitored in watch. These operations are the same as those in Visual Studio.

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/cyblueboy83/archive/2010/01/01/5116140.aspx

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.