[Core] Add debug message to help tracking down a bug