# Type of request: This is a ...

[x] bug report
[ ] feature request

# Detailed description

Support different ways of configuring debug ports for Java lambdas

```
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=_debug_port_
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:_debug_port_
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=127.0.0.1:_debug_port_
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:_debug_port_

-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=1234
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:1234
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=127.0.01:1234
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:1234

````

## Expected behavior

Ports are parsed correctly


global DOCKER_MAIN_CONTAINER_IP
    if DOCKER_MAIN_CONTAINER_IP is None:
        DOCKER_MAIN_CONTAINER_IP = False
        try:
            if in_docker():
                DOCKER_MAIN_CONTAINER_IP = bootstrap.get_main_container_ip()
                LOG.info('Determined main container target IP: %s' % DOCKER_MAIN_CONTAINER_IP)
        except Exception as e:
            container_name = bootstrap.get_main_container_name()
            LOG.info('Unable to get IP address of main Docker container "%s": %s' %
                (container_name, e))
    
    return DOCKER_MAIN_CONTAINER_IP or config.DOCKER_HOST_FROM_CONTAINER
class LambdaExecutor(object):
    """ Base class for Lambda executors. Subclasses must overwrite the _execute method """
    def __init__(self):