See the question from stackoverflow: http://stackoverflow.com/questions/21951118/how-to-use-debug-with-undefined-parser