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

[Eclipse] Remote Debug: Better handle the situation when you have to log into the server again #3010

@keithchong

Description

@keithchong

Codewind version: Latest
OS: Mac

IDE extension version: Latest
IDE version: Eclipse - any supported
Kubernetes cluster: OpenShift 4.3.18

Details:

Pre-req: Do a remote debug session on a Codewind Microprofile project. The launch config will be created. Terminate the debug process.

Let some time pass such that you will have to login again to the server. (The token expired) I tried to simulate this by doing an oc logout. In both cases (time out or oc logut), the dialog in step 4 appears.

  1. Restart Eclipse. After Eclipse is restarted, I see that the application status is: Debugging, Build successful. Here, my app is called zzz :

Screen Shot 2020-05-25 at 10 35 24 AM

  1. Right click on the project and select Attach Debugger. You see this in the Console view:

Screen Shot 2020-05-25 at 11 20 06 AM

  1. I tried to enter the user name and password, but only was able to enter the username:

Screen Shot 2020-05-25 at 11 22 09 AM

  1. This dialog appears

Screen Shot 2020-05-25 at 11 29 10 AM


If you actually wait (and not do an oc logout), you will get this in the Console view instead

Screen Shot 2020-05-25 at 10 39 40 AM

Note that if you simply run the oc login command from your Mac 'system' Terminal window, then attaching the debugger is successful. The above prompting is a bit misleading and misguides you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/eclipse-ideIssue associated with the Codewind Eclipse plugingood first issueGood issues for new contributors to tacklekind/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions