How to build & debug correct way of custom loadable-modules

Hello, I’m starting development with Slicer for the first time and I’m having trouble finding solid answers or documentation about custom Loadable Modules.

I’d like to know how to build and debug a Loadable Module with the directory structure I’m using.

C:\P\Slicer\ … (slicer source from git)
C:\P\SD\ … (build of slicer source)
C:\P\MY\MyModule1\ … (skeleton loadable module from extension manager)
C:\P\MY\MyModule2\ … (skeleton loadable module from extension manager)
C:\P\MY\MyModule3\ … (skeleton loadable module from extension manager)

I’d like to understand how to build and debug these my modules on a Slicer build. And how to add loadable modules to a stable version of Slicer.

Additionally, Is there a automation solution of these things?

Thank you!