Yes its very important
About that particular candidate, it is possible that s/he was not familiar enough with code-base x to debug it.
A good problem solver should be able to debug, as all that is usually required is to have a very logical method/approach.