How to debug an orbit application?

26 views
Skip to first unread message

Francesco D'Arrigo

unread,
Jun 24, 2014, 11:14:11 AM6/24/14
to kepler-...@googlegroups.com
Hello,
I'm trying to debug the "blog" sample found in Orbit source code in order to understand how to debug my web appllication.
I'm using Xavante web server which uses WSAPI to launch the Blog application.
My problem is that I only can debug the xavante launcher; when WSAPI creates a co-routine I'm not able to break into the blog application.

I tried some debuggers (koneki, zerobrane, akdebugger,..) but I always have the same problem.

This is my "start.lua" code, the Xavante launcher:

require "xavante"
require "xavante.filehandler"
require "xavante.redirecthandler"
require "wsapi.xavante"

-- Define here where Xavante HTTP documents scripts are located
local webDir = "."

local simplerules = {
    { -- URI remapping example
        match = "^[^%./]*/$",
        with = xavante.redirecthandler,
        params = {"blog.ws"}
    },
    { 
        match = {"%.ws$", "%.ws/.*$" },
        with = wsapi.xavante.makeGenericHandler (webDir)
    },
    { -- filehandler example
        match = ".",
        with = xavante.filehandler,
        params = {baseDir = webDir}
    },

}
xavante.HTTP{
    server = {host = "*", port = 8080},
    defaultHost = {
        rules = simplerules
    },
}
xavante.start()


I'm wrong in something? Can anyone help me?

Thank you very much.
Francesco
 
Reply all
Reply to author
Forward
0 new messages