Report declaration emit errors

Fixes #628
remove the debugger statement :)