I find the link which shows how to run the unit tests.
And I think it could get a better understanding about the source code by debug the unit tests.
I can debug the source code as the tensorflow python application run. But I don't know how to debug the unit test. I am new to bazel and gdb debug.