Add source code context information to debug logs