From: Alexandre Mutel Date: 2009-11-20T01:27:32+09:00 Subject: Re: How to strip ruby comments in a ruby line of code? Brian Candler wrote: > Alexandre Mutel wrote: >> Damn, your solution was almost working well, but working on an external >> file, the "eval" loose the step in the code > > What do you mean by "loose the step" - it's reporting the wrong line > number? I hacked together that code very quickly, and I'm sure it's > fixable. Here is a more verbose version that is more likely to have the > correct line number. i mean that before the eval of a chunk, i'm still in the dsl code, but after i press "F8" hit, the debugger is going back to the line just after the eval (line += chunk.split("\n").size), although i didn't setup any breakpoint code there... it's weird, but then, I'm not able to come back and step in the dsl code (even if i put some breakpoints). I don't know if it's a bug or limitation on my debugger (i'm using RubyMine) or probably I'm missing something... -- Posted via http://www.ruby-forum.com/.