-
Notifications
You must be signed in to change notification settings - Fork 244
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
odo debug port-forward uses wrong port #3840
Comments
@kadel You mean 5859 according to
right? |
@prietyc123 |
@kadel Currently port-forward uses the DEBUG_PORT value from the env.yaml for devfile components. Should we remove |
@sarveshtamba problems described in #3502 are not related to this. |
I thought that |
I checked again and
|
To clarify, the issue is that the wrong remote port is used by port-forward in the case that you specify an "env" in the devfile configuring the debug command, e.g. : - id: debug
exec:
env:
- name: DEBUG_PORT
value: "7777"
component: devruntime
commandLine: mvn -Dmaven.repo.local=/mvn/repository -Dliberty.runtime.version=20.0.0.9 -DdebugPort=${DEBUG_PORT} liberty:dev -Dliberty.env.WLP_DEBUG_REMOTE=y
workingDir: /projects
hotReloadCapable: true
group:
kind: debug
isDefault: true Running with the v2.0.0 GA, the
I don't think there's any issue with the local port though. The problem with port-forward giving precedence to the env.yaml entry is that the 'debug' container will give precedence to the devfile env in substituting in the |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug
How did you run odo exactly?
Have devfile with debug command that defines env variable for debug port in debug command like this
Running
Actual behavior
Using port 5858 for port forwarding
Expected behavior
It should use 5959, because that is where the debugger is listening based on
DEBUG_PORT
env variableAny logs, error output, etc?
/priority medium
/area debug
The text was updated successfully, but these errors were encountered: