vscode调试openresty

Posted chendeming

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vscode调试openresty相关的知识,希望对你有一定的参考价值。

一、快速上手

 

1、软件下载

  官网地址:https://code.visualstudio.com/

  安装视频:https://code.visualstudio.com/docs/getstarted/introvideos

 

2、配置插件

  插件安装:https://blog.csdn.net/qq_38161040/article/details/99651543

 

3、搭建环境

 

 

 

调试模式

 

 

注意点:

1、openresty的nginx要正常启动

2、在待调试脚本中加上require("LuaDebugOpenrestyJit")("127.0.0.1",7003);(是官方给的脚本,127.0.0.1:7003是vscode提供的调试服务地址)

 

以上是关于vscode调试openresty的主要内容,如果未能解决你的问题,请参考以下文章