in reply to Re^2: Debug Macro
in thread Debug Macro

Nope. I don't have hand-on experiences with Module::Compile. But I would recommend taking a look at the distributions that depend on this to get a feeling of how it is used. One such list may be visualized in the CPANTS report for the distribution. Look for "Other Dists requiring Module-Compile". Then you'll find some applications

and some tailored modules intended to make easier writing the examples you asked for: