# 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


',suspend=y,address=1234')
        self.assertTrue(re.match(expected, result))
        self.assertEqual('1234', lambda_executors.Util.debug_java_port)
    def test_java_options_with_configured_debug_port_in_middle(self):
        expected = '.*transport=dt_socket,server=y,address=1234,suspend=y'
        result = self.prepare_java_opts('-Xmx512M -agentlib:jdwp=transport=dt_socket,server=y'
                                      ',address=1234,suspend=y')
        self.assertTrue(re.match(expected, result))
        self.assertEqual('1234', lambda_executors.Util.debug_java_port)
    def prepare_java_opts(self, java_opts):
        lambda_executors.config.LAMBDA_JAVA_OPTS = java_opts
        result = lambda_executors.Util.get_java_opts()
        return result
    def test_get_java_lib_folder_classpath(self):
        jar_file = os.path.join(new_tmp_dir(), 'foo.jar')
        save_file(jar_file, '')
        classpath = lambda_executors.Util.get_java_classpath(jar_file)
        self.assertIn('.:foo.jar', classpath)
        self.assertIn('*.jar', classpath)
    def test_get_java_lib_folder_classpath_no_directories(self):
        base_dir = new_tmp_dir()
        jar_file = os.path.join(base_dir, 'foo.jar')
        save_file(jar_file, '')
        lib_file = os.path.join(base_dir, 'lib', 'lib.jar')
        mkdir(os.path.dirname(lib_file))
        save_file(lib_file, '')
        classpath = lambda_executors.Util.get_java_classpath(jar_file)
        self.assertIn(':foo.jar', classpath)
        self.assertIn('lib/lib.jar:', classpath)
        self.assertIn(':*.jar', classpath)