vendredi 2 juin 2017

Debugging Turbo.Lua Request Handlers using Lua Development Tools

I am just new to Lua and Turbo. We have written basic turbo.lua web server and a simple request handler to demonstrate.With this we also like to enable better debugging mechanism with the use of Eclipse Lua Development Tool(LDT). Since the request handlers functions are specific to Linux based, so we planned to develop using Windows LDT and enable remote debugging ( of LDT) , so that it will be easy to debug and actual code execution also will be as like production.

We enabled remote debugging and added break point in two places. 1. Before calling the turbo.listen 2. In one of the request handler prepare function

While starting debugging, break point hits in the first place ( before calling turbo.listen) and server is started listening for HTTP requests.

Next we tried some GET request to check whether break point is hitting in the request handler prepare method. GET method got succeeded, but break point did not hit. I have no clue why the break point not hitting in request handler, though the request is processed. Is there any mechanism to enable break point in the request handler functions?




Aucun commentaire:

Enregistrer un commentaire