-
Notifications
You must be signed in to change notification settings - Fork 44
[Appsody debug scenario documentation] Attach Debugger must be run a second time for microprofile project extensions #239
Comments
Documented as part of eclipse-archived/codewind-docs#71. Can close once that gets in |
@sghung I have added a new section to the Troubleshooting doc in this commit: eclipse-archived/codewind-docs@fd33944 Please let me know if you'd like any additional changes. Thanks! |
Just to clarify, the bug still needs to be addressed. We're just documenting that the |
Is it possible to address this issue in 0.3 release.? Is it risky to deliver fix at this time of the release.? |
I had incorrectly removed the area/eclipse-ide label. We had documented it in appsody docs, but the proper fix is on the eclipse-ide team. Also, since it is documented, this isn't a stop ship |
what's there still to be done on this? |
@tetchel , I'm still getting this message while testing 0.6.0: Failed to attach debugger to appsEclipseMp01 at 127.0.0.1:32788. I had to use the workaround described here to get it to work: |
We documented this right? Can we close the issue? |
Here is a link to the documented section on our website: https://www.eclipse.org/codewind/troubleshooting.html#attempts-fail-to-attach-the-debugger However, I was under the impression that development eventually wanted to fix the issue, and I would remove this documented section on the website? |
I tried fixing this ancient issue but I think the issue is with the Appsody extension emitting the restart result way too soon, not the IDE. PFE logs:
Since the appsody logs aren't read by PFE the above aren't too useful, but I can see that the restart success event comes while the Appsody project is still downloading its dependencies. If I wait ~2 minutes for the app to actually be starting (this message: |
From what I can tell, I think this never was a problem for Codewind projects because the app start up relatively quickly after the container is up (it's the build part that takes long), whereas for Appsody the build occurs as part of running the app. |
I can reproduce this problem with the Eclipse IDE and Appsody MicroProfile projects. The debugger does eventually connect after a really long time. This doesn't seem right though because the debugger connect timeout is set to 3 seconds. I will investigate why it keeps trying to connect for much longer than that. Anyway, it is all the same issue where it tries to attach the debugger long before the app is ready. |
Codewind version: latest
OS: Mac
IDE extension version: latest VS Code Extension
IDE version: 1.36.1
Description: When restarting an extension project in debug mode, the first debug attach attempt fails (Currently, there is no delay for project extensions). Users then have to run the Attach Debugger action 'manually' after.
Steps to reproduce:
--> You will get an error message:
Failed to attach to remote debuggee VM
or
Failed to attach debugger to at ipaddress:
Workaround:
Workaround is to run the Attach Debugger action manually.
The text was updated successfully, but these errors were encountered: