Basic debugging guidance

I would like to be able to do some basic debugging of addons by adding logging statements in their code. I’m an intermediate Python programmer (not doing Python professionally) but all on Windows. I have HA running on HassOS on a RP3b+. Before I get into it too deeply I’d like to check if my idea is even practical. I’d like to stop an addon, e.g Dasshio (which is not behaving well), add more logging statements and then restart it. I can make an SSH connection via PuTTY but it appears there is some magic to get to the addon docker containers?