Hello!
2016-07-15 2:04 GMT-07:00 雨师:
> Hello。
> 在网络上一直没搜索到openresty的调试模式,感觉按照nginx的调试,仅修改auto/cc/conf中ngx_compile_opt选项后,好像有些地方会出现<value
> optimized out>的情况。
> 在openresty的configare中又没有找到相关开关...
> 请问有没有办法打开gdb的调试?
>
如果你只是想禁掉 C 编译器优化的话,直接在 ./configure OpenResty 的时候指定 --with-cc-opt="-O0"
选项就好了(这对 nginx 的 ./configure 也同样适用)。
Regards,
-agentzh