scalameta / metals-feature-requests

Issue tracker for Metals feature requests
37 stars 4 forks source link

Enable HCR(Hot Code Replace) when changed code At debugging #336

Closed acodervic closed 5 months ago

acodervic commented 1 year ago

HRC is a powerful feature in JVM, It allows me restart the frame and keep the last updated code without restart debugging session. If metals has the feature, How can I enable it ? Or another simple way to do it ? I know hotAgent with DEVM , I mean more simple method like the video https://code.visualstudio.com/docs/java/java-debugging/hcr.mp4

Thanks for metals team ! Or someone answer me !

tgodzik commented 1 year ago

Thanks for reporting! We currently don't support anything like this out of the box, there might some other ways to achieve it, but not within the metals debugging session.

I'll move it to the feature requests repo. There is a related issue in Bloop https://github.com/scalacenter/bloop/issues/1242

adpi2 commented 1 year ago

I created the related issue in https://github.com/scalacenter/scala-debug-adapter/issues/393

acodervic commented 1 year ago

I created the related issue in scalacenter/scala-debug-adapter#393

Thanks

adpi2 commented 5 months ago

This is available since v4.0.0 of the scala-debug-adapter and in the latest Metals version.