Lua simple remote debugger

Source: Internet
Author: User

LuaSimple remote implementationDebuggerIs the content to be introduced in this article, mainly to understandLUAInDebuggerFor more information, see the implementation of the specific content.

Finally, let's put a picture first.

 

The Ldb function is still relatively simple. Currently, there are only one step: step into, step over, step out and breakpoint. The other is Local Var and Call Stack. Add Watch quickly.

The local code is still debugged. Although it is a remote mechanism, to solve the problem of debugging remote scripts, when there is no code in the Local Machine, a policy is required to transfer the code from the debug end.

In addition, efficiency issues:

1. After the debugger is started, the host program starts two additional threads, one Listen, one send and one recv. Although IOCP is used for most of the time, both threads are Sleep, but...

2. The lua client hook is too high, which also affects the execution efficiency. At this time, the debugger is not a big problem.

Summary:LuaSimple remote implementationDebuggerI hope this article will help you!

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.