#577: add "--no-line-directives" switch to Configure.pl
--------------------------------+-------------------------------------------
 Reporter:  bsdz                |        Type:  patch    
   Status:  new                 |    Priority:  normal   
Milestone:                      |   Component:  configure
  Version:  trunk               |    Severity:  medium   
 Keywords:  ops2pm pmc2c ops2c  |        Lang:           
    Patch:  new                 |    Platform:  all      
--------------------------------+-------------------------------------------

Comment(by bsdz):

 It's difficult to post examples without perhaps some screenshots.

 What I can tell you is that, when using Visual Studio, the compiler
 overwrites the real positional information (i.e. real file and real file
 line) with those provided by the #line directives. Of course this is to be
 expected.

 However, this means when stepping through Parrot internals' code the
 debugger does not show you the real C file and line of what code you are
 stepping through but the original template code, that is you step through
 the pmc and ops files. This compounded with the fact that sometimes the
 preprocessor Perl scripts emit incorrect #line directives (not entirely
 sure how?); this makes things even more confusing.

 There is no way one can make VS ignore #line directives without going
 through each file and commenting them individually (not sure why there's
 no #pragma to do that?).

 Please also note the patch fixes a bug where pmc2c.pl already accepted a
 "--no-lines" switch but silently ignored it.

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/577#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to