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