Out of curiosity how are you developing Xwm? Do you write/compile/run in a docker image?
While ago, Julia Evans has published a blogpost about challenge to write own window manager [0]. Perhaps, you will find it interesting if would like to get know more about typical debugging tools for a window manager development.
[0]: https://jvns.ca/blog/2019/11/25/challenge--make-a-bouncy-win...
I switch my process frequently as I move around quite a bit, making development work fairly tedious. I am sure that there is a better way, but this is what I found works for me at the moment.