In order to fix a bug in a binding (not my own binding) I set up VS Code as an IDE in Windows 10 closely following this very helpful guide. Everything works fine at first. I can attach to the local openHAB instance and debug the code.
However, after making changes, recompiling and copying the JAR file to the addon folder (by hitting F5), the changes are not applied and the debugger still uses an old (cached) version ignoring the new code in the (updated) source file.
I already tried deleting JAR files from Maven’s .m2 repository and the addons folder of the openHAB instance as well as the contents of the cache and tmp folders in the userdata folder of the openHAB instance, but to no avail.
I would be grateful for any hint on how to make the VS Code debugger for Java use the updated code.