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 Run – Attach 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