Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: following a variable's value.



18.10.2015, 07:33, "Ray Andrews" <rayandrews@xxxxxxxxxxx>:
> On 10/17/2015 05:29 PM, ZyX wrote:
>>  18.10.2015, 03:11, "Ray Andrews" <rayandrews@xxxxxxxxxxx>:
>>>  Gentlemen,
>>>
>>>  I discovered by accident the useful 'warncreateglobal' and it has me in
>>>  mind to ask if there's some way of tracing the value of variable. I
>>>  know about 'set -x' of course, but some way of following the fortunes of
>>>  a single variable would be very nice.
>
> ...
>>  If you write C module specifically for your needs you may overcome these limitations.
>
> Thanks ZyX, but that sounds way over my head. I've still never touched
> python. If no one else has any ideas then I'll keep doing it the hard
> way with inserted queries.

You can use some other languages which allow compiling *.so libraries and have a way to create compatible ABI: e.g. Rust. But in any case basic C knowledge is necessary.

What do you mean by “inserted queries”? Some kind of “debugging printf”?



Messages sorted by: Reverse Date, Date, Thread, Author