Why would you commit this code? If it's a test, put it in a branch and once the problem is solved, merge it in?
It's also common to include TODO, FIXME, or BUG comments into code. Sure, you can put them into issue tracker, but having them directly in code gives more context.