These are chat archives for HotswapProjects/user

24th
Mar 2018
Alexander Bartash
@AlexanderBartash
Mar 24 2018 17:00
Hi guys, hi @skybber I am trying to figure out why version 1.1.0 works in my project based on SAP Hybris platform and 1.2.0 does not. Do you have any information how to debug hotswap agent? I am particularly interested in Spring Plugin.
Alexander Bartash
@AlexanderBartash
Mar 24 2018 17:12
More precisely 1.2.0 works but it screws up spring context in the runtime and the app does not start. 1.2.1 does the same and logs additional errors.
Vladimir Dvorak
@skybber
Mar 24 2018 18:42
Hi, thanks for info. I don't have any experience with Hybris neither I have any prepared tests for it. But may be you can find out of your own. It is not so hard to do. All what you need is the last working commit ID and then you can do "git bisect" on repository and build/test each itermidiate version. We don't have too much versions since 1.1
Alexander Bartash
@AlexanderBartash
Mar 24 2018 19:23
Yeah, that is what I am going to do. I am just curious if there is any way to debug the agent in runtime. It may be not possible because of the way it is being run.
Actually breakpoints seem to be working. Thanks :)
Alexander Bartash
@AlexanderBartash
Mar 24 2018 19:31
What does tomcat plugin do?
Vladimir Dvorak
@skybber
Mar 24 2018 21:49
You can change hotswapagent's code when you debug hotswapagent, it seems creazy but you really do it.
Tomcat plugin patches the Tomcat's(Tomee, Payara, GlassFish) WebAppClassloader and allow to use extraClassPath+webappDir properties.
There is some description of extraClassPath & webappDir : http://hotswapagent.org/mydoc_configuration.html
Vladimir Dvorak
@skybber
Mar 24 2018 21:55
This settings are really cool for debugging apps in Docker.