# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #40806] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40806 >
In docs/compiler_faq.pod: =head2 How do I embed source locations in my code for debugging? You can do this using either the C<setfile> and C<setline> opcodes or with C-like C<#line> comments: #line 27 "my_source.file" Simply set the source file name or line number whenever it changes. But note that currently (Parrot 0.3.0) both are ignored in the lexer. As of 0.4.6 these still seem to be ignored, but we could start to use this for various compilers (notably, TGE needs it to resolve RT #39905). I'm adding a test for this ticket to t/compilers/imcc/syn/errors.t . Thanks! Pm