How to debug Appium modules

Hi,

Besides running Appium itself from source,
What else should be done in order to place breakpoints in some module (e.g. appium-base-driver) and debug it ?

Thanks.