Add debug log entries for dependencies.

Refs #5872