kursjan / petitparser2

A high-performance top-down parser
MIT License
41 stars 19 forks source link

Debugging actions #60

Open khinsen opened 4 years ago

khinsen commented 4 years ago

I have a parser with non-trivial actions (==>) on several nodes, and I wonder how I can debug problems in the action code, given that ==> absorbs all exceptions, even debugger breakpoints. Is there a way to let actions raise exceptions rather than cause parser failures?