Re: Proposal: Debug option for translator

new topic     » goto parent     » topic index » view thread      » older message » newer message

Robert Craig wrote:
> 
> Matt Lewis wrote:
> > I've submitted a new feature request on sourceforge to allow the translator
> > 
> > ecu -debug myapp.exu
> > 
> > ecu -debug=decu.a myapp.exu
> 
> Sounds good to me.
> If no one objects soon, please go ahead.
> 
> People should also remember that:
> }}}
<eucode>
>    with trace
>    trace(3)
> </eucode>
{{{

> works with the translator.
> It will produce a ctrace.out file of the last 500 
> Euphoria statements executed before a crash.

Yeah, my change is strictly C-level debugging, so most people will probably
never use it.  Ultimately, the only change in output will be to the
emake file.

> Debugging translated code can be very painful,
> though this is mainly something that the developer(s)
> of the translator have to worry about.
> Any additional help in this area would be very desirable.

Yep.  And it was driving me nuts trying to track down a memory leak
when valgrind would end the traceback at NewS1.  Finally stumbled across
something in the online docs that said that -fomit-frame-pointer could
lead to confusing/incomplete results.
 
> By the way, did you ever look into the ecw bug
> recently reported by Igor? I assumed it might
> be due to your default file extension change:
>   http://www.openeuphoria.org/EUforum/m16120.html

Could be.  I get that result using 3.1.1, but the trunk works as expected.
I love it when bugs fix themselves.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu