Debhelper is a tool that is used inside debian/rules files to ease package building. This page collects tips for using debhelper.
Finding out how it works
dh prints the commands that it executes.
If you add export DH_VERBOSE=1 to debian/rules, the debhelper commands will print more information about what they are doing.
You can run dh <target> --no-act for each <target> you want (build,
clean, binary etc.) to see what dh would run for that target.
Why does this page exist
ZugSchlus stumbled upon helpful snippets by wRAR on debian-mentors and wanted to put them on the Wiki.