apisix icon indicating copy to clipboard operation
apisix copied to clipboard

request help: What IDE to use for development? How to debug?

Open zhuchengxing opened this issue 6 years ago • 5 comments

Issue description

Hello, excuse me! What IDE to use for development? How to debug? What else do I need to do besides installing OpenResty locally? I am a Java development, just started this piece, I now clone the source code, using Vscode and Intellij idea to try to execute the code, but there are always various errors!

Environment

  • apisix version (cmd: apisix version): 1.5
  • OS: windows

zhuchengxing avatar Sep 01 '20 07:09 zhuchengxing

I use vacode as the IDE, and print logs to debug, and there is no modern method to debug OpenResty programs. What error did you encounter specifically?

moonming avatar Sep 01 '20 07:09 moonming

but there are always various errors!

we should use ngx_lua, it is different from standard Lua.

"luacheck.globals": [
        "--std", "ngx_lua",
        "--no-redefined",
        "--max-line-length", "100"
    ],

membphis avatar Sep 01 '20 08:09 membphis

I think we can close this issue

membphis avatar Sep 01 '20 08:09 membphis

Consider solved.

spacewander avatar Oct 29 '20 08:10 spacewander

Try a EmmyLua plugin with IDEA? Segmentfault's blog 使用idea调试lua代码-Openresty

anjia0532 avatar Jul 08 '21 01:07 anjia0532