aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
760 stars 220 forks source link

Hot Swap for remote ECS debugging #1457

Closed DmPanov closed 3 years ago

DmPanov commented 4 years ago

It would be great to perform code hot swap at the same extent it's possible with local debugging.

Alternative is to restart application every time code is changed and wait.

kiiadi commented 3 years ago

Just to confirm here - are you talking about hotswapping code at runtime (e.g. via JRebel or something?) or something else?

DmPanov commented 3 years ago

Yes, runtime hot swap like https://dcevm.github.io or regular Java method bodies hot swap at least

kiiadi commented 3 years ago

What's the limitations that stop you from using this today? If you use a base-image thath as the DECEVM stuff already on it (e.g. https://github.com/HotswapProjects/hotswap-docklands) then you should be able to just spin up the application with the appropriate environment variables / JVM arguments and when the debugger attaches you should be able to hotswap.

Am I missing something? I must admit - but it seems like the required lifecycle hooks are there...

DmPanov commented 3 years ago

Actually I tried ECS debugging almost a year ago and at that time the request made sense for me. But now I'm not sure, it seems you are right, thanks