# 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


context.request._cached_data = '{}'
        context.request.args = {'Qualifier': '$LATEST'}
        context.request.environ['HTTP_X_AMZ_INVOCATION_TYPE'] = 'RequestResponse'
        self._create_function(self.FUNCTION_NAME)
    @mock.patch('localstack.services.awslambda.lambda_api.run_lambda')
    def test_invoke_plain_text_response(self, mock_run_lambda):
        with self.app.test_request_context() as context:
            self._request_response(context)
            mock_run_lambda.return_value = '~notjsonresponse~'
            response = lambda_api.invoke_function(self.FUNCTION_NAME)
            self.assertEqual('~notjsonresponse~', response[0])
            self.assertEqual(200, response[1])
            self._assert_contained({'Content-Type': 'text/plain'}, response[2])
    @mock.patch('localstack.services.awslambda.lambda_api.run_lambda')
    def test_invoke_empty_plain_text_response(self, mock_run_lambda):
        with self.app.test_request_context() as context:
            self._request_response(context)
            mock_run_lambda.return_value = ''
            response = lambda_api.invoke_function(self.FUNCTION_NAME)