[ESS] ess-tracebug - feature suggestion

Vitalie S. spinuvit.list at gmail.com
Thu Dec 16 16:21:13 CET 2010


Rainer M Krug <r.m.krug at gmail.com> writes:

>> 
>>> I just thought about one: what about logging points? like breakpoints,
>>> but that values of expressions are logged, but the running of the
>>> program is not interrupted? i.e:
>> 
>> Interesting idea. But I think it's much easier implementable in R. Just
> define a
>> custom function to log the variable state in global variable or a file, and
>> invoke it whenever you need logging in your program.
>
> Yes - but as you are planning to include "watches", it would be nice to
> be able to log the variables for further debugging from the debugging
> interface. This would avoid to having to edit the source code when
> debugging. And actually, when saving it to a file, it should not be to
> difficult to implement, as it is effectively only inserting, instead of
> a browser() command, a save.table("logfile", append=true,
> col.names=FLASE). Kind of a custom breakpoint.
>
Oh, yes, I see what you mean now. Sure, it shouldn't be difficult to implement
once watches are there.

Thanks,
Vitalie.

> Cheers,
>
> Rainer
>
>> 
>> Cheers, 
>> Vitalie.
>> 
>>>
>>> M-c l a
>>> brings up a request for the expression to be logged
>>>
>>> M-c l f
>>> brings up a request for the filename to which log he expression
>>>
>>> M-c l o
>>> brings up a request if the logs should be appended or overwritten
>>>
>>> .
>>> .
>>> .
>>>
>>> Another option for logging: Open a new R session, and store the logged
>>> variable values there as a list - this would enable plotting for quick
>>> checks, ....
>>>
>>> Thinking of it, I would actually prefer the new R session.
>>>
>>>>
>>>>>
>>>>> And finally: the tab-completion is not working when debugging, but the
>>>>> same applies when using browser() - so it has nothing to do with
>>>>> ess-tracebug in particular, but is related to debugging.
>>>>>
>>>>
>>>> It works for me.  The  `ess-complete-object-name` which performs the
>>>> completion and should be fine with you as well.
>>>
>>> I'll try it out again by using `ess-complete-object-name` directly and
>>> not tab.
>>>
>>>>
>>>> I will get down to conditional breakpoint and watch window in the January.
>>>> Hopefully you don't plan to do some heavy debugging during the Christmas
>>> holidays:)
>>>
>>> Don't worry - over the Christmas holidays, I will go into personal
>>> recovery mode and not R / ess debug mode.
>>>
>>> I am really looking forward to the new release of ess-tracebug.
>>>
>>>>
>>>> Thanks for the feedback,
>>>
>>> Pleasure - that's what I like about open-source software: even if I
>>> don't have the knowledge (and time) to code myself, I can help to
>>> improve the software by giving feedback.
>>>
>>> Cheers,
>>>
>>> Rainer
>>>
>>>> Vitalie.
>>>>> Cheers,
>>>>>
>>>>> Rainer



More information about the ESS-help mailing list