Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Remote Debug Java Application using CFLocal #22

Open
victorjdev opened this issue Mar 23, 2018 · 2 comments
Open

Remote Debug Java Application using CFLocal #22

victorjdev opened this issue Mar 23, 2018 · 2 comments

Comments

@victorjdev
Copy link

Hi, I'm trying to remote debug a java application using CFLocal.

I've tried to add both JBP_CONFIG_DEBUG and JAVA_OPTS environment variables to my local.yml file, but I'm unable to expose the remote debug port through the cf local run command. It looks like only one port can be specified using the -p parameter.

Is there a way to remote debug a java application using CFLocal?

@sclevine
Copy link
Contributor

Hi @victorjdev,

The cf local run command currently only exposes a single port. As a workaround, you can export the app as an image with cf local export, and then run it in Docker with more ports exposed.

In a future release the local.yml file will allow you to specify additional ports.

@victorjdev
Copy link
Author

Thanks @sclevine for the workaround and looking into enhancing CFLocal to expose more than one port.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants