Dependence: Add DEBUG support.

Contributed-by:  Star Tan <tanmx_star@yeah.net>