LUA Debugging in Unity

Source: Internet
Author: User
Objective

In my previous article, I talked about the LUA editor Idea+emmlylua (plug-ins), and of course Emmlylua also provides debugging capabilities.

Lua code hints and method jumps

Methods for prompting UnityEngine.dll in Lua

PS: The same configuration 16G DDR4+128g SSD, the performance of the WIN10 and WIN7 vary greatly, WIN10 debugging is smooth, WIN7 debugging special card and easy to let unity hang up, So for hardware high configuration recommend everyone use WIN10 system.

Debugging steps

1. After installing emmly, in the root directory of the project LUA code, create a new project with idea

2. In Project view, select Directory, right - Mark directory as- Resources Root , set to complete as shown in: (Very important step)

3. Select RunAttach to Local process in the menu bar – Select Unity

4. Click on the front of the line where you want the breakpoint to add or cancel the breakpoint.


debugging shortcut keys

F8 single-line execution (one row in sequence)

F9 jumps to the next breakpoint

F7 jumps to the inside of the calling function

CTRL + F2 Stop debugging

LUA Debugging in Unity

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.