Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add EmmyLuaDebugger hook #12899

Merged
merged 1 commit into from
Apr 29, 2024
Merged

feat: add EmmyLuaDebugger hook #12899

merged 1 commit into from
Apr 29, 2024

Commits on Apr 29, 2024

  1. feat: add EmmyLuaDebugger hook

    The change provides a hook in the init_worker phase to start the
    EmmyLua debugger.  The debugger is enabled by setting the
    `KONG_EMMY_DEBUGGER` to the absolute pathname of the EmmyLuaDebugger
    shared library (e.g. /usr/local/bin/emmy_core.dylib).  The host and
    port that the debugger interface listens on can be defined by setting
    the `KONG_EMMY_DEBUGGER_HOST` and `KONG_EMMY_DEBUGGER_PORT`
    environment variables, respectively.
    
    If the environment variable `KONG_EMMY_DEBUGGER_WAIT` is set, the
    debugger hook waits for the IDE to connect at the beginning of the
    worker startup process to allow debugging of startup issues.
    
    Kong should be started with KONG_NGINX_WORKER_PROCESSES set to 1 to
    enable only one worker process.  Debugging multiple worker processes
    is not supported.
    
    This feature is based on work by @mehuled, published in
    https://dev.to/mehuled/breakpoint-debugging-with-kong-plugin-development-75a
    hanshuebner committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    23f751f View commit details
    Browse the repository at this point in the history