Monday, November 19, 2007

Perl debugger source tracking of eval() blocks

So a few months ago I had been doing some work on the Perl DBGP stub written by ActiveState, and I had a number of problems with locating source code references properly in eval() blocks.

Was browsing the Perl delta for 5.8.8, and noticed this little one-liner:

The debugger now traces correctly execution in eval("")uated code that contains #line directives.

Now I don't know that that is a fix for the problem I slaved over for days, but we are running 5.8.7 and I do rely on #line directives to keep track of source locations in eval blocks (which is how almost all my code is compiled). Kind of makes me wonder if maybe I should get 5.8.8 and see if all my problems go away...