  Technical debt occurs when software engineers favour short-term operability
over long-term stability. Since this puts software stability at risk, technical
debt requires early attention (failing which it accumulates interest). Most of
existing work focus on detecting technical debts through code comment (i.e.
self-admitted technical debt). However, there are many cases where technical
debts are not explicitly acknowledged but deeply hidden in the code. In this
paper, we propose a more comprehensive solution to deal with technical debt. We
design a framework that caters for both cases of the existence of a comment. If
a comment is absent and our framework detects a technical debt hidden in the
code, it will automatically generate a relevant comment that can be attached
with the code. We explore different implementations of this framework and the
evaluation results demonstrate the applicability and effectiveness of our
framework.
