IntelliJ IDEA breakpoint debugging and usage tutorial

table of Contents

1. Install EmmyLua plug-in for IntelliJ IDEA

2. Add breakpoint debugging

Difficult problems and error code records:

3. Automatic API generation and use

4. Lua method customization


1. Install EmmyLua plug-in for IntelliJ IDEA

Detailed installation tutorial
https://blog.csdn.net/ligaofeng/article/details/105221994

General process: search Emmylua in IJ-Setting-Plugins and install

Intranet installation, download plug-ins, drag into plugins

2. Add breakpoint debugging

New project or open

Click Add in Run/Debugger Configurations and select the type Emmy Debugger(NEW).

Fill in your own package.path.

ex:

    package.cpath = package.cpath .. ';C:/Users/songzhewen/.IdeaIC2019.3/config/plugins/intellij-emmylua/classes/debugger/emmy/windows/x64/?.dll'
    local dbg = require('emmy_core')
    dbg.tcpListen('localhost', 9966)

 

 

Difficult problems and error code records:

1.Connection refused: connect
local configuration needs to be modified to your own configuration in Main.lua
if true then
    package.cpath = package.cpath ..';C:/Users/songzhewen/.IdeaIC2019.3/config/ plugins/intellij-emmylua/classes/debugger/emmy/windows/x64/?.dll'
    local dbg = require('emmy_core')
    dbg.tcpListen('localhost', 9966)

end

3. Automatic API generation and use

Introduce the generated luaApi into the lua project 

4. Lua method customization

Guess you like

Origin blog.csdn.net/osuckseed/article/details/108552159