RE: CLARIFYING TRACE COMMAND
- Posted by Robert Craig <rds at RapidEuphoria.com> Mar 17, 2003
- 393 views
Pete Lomax wrote: > Is there any way to change the trace pretty print mode?. No. > On a related note, I have changed database.e as follows: > pretty_print(fn, key, {2, 2, 8}) --PL was 1,2,8 > pretty_print(fn, data, {2, 2, 9}) --PL was 1,2,9 > It would be nice if db_dump's second parameter was an object; if > integer behave as now else allow a sequence to define several > different options, in my case the pretty print format > would be one of them. Maybe that's better for your purposes, but some people would hate to see sequences of small integers 32-127 displayed as ASCII characters only. I guess I see most uses of pretty_print(), whether for tracing or dumping database data, as being for quick debugging purposes, rather than ultra-pretty display with fine control. (e.g. for the end user of your program). It's not that hard to go through each record in your table, or each element of a sequence, and format the data as you like, with printf(). You know the format that makes sense for each piece of data. pretty_print() doesn't, and I don't want to allow for every imaginable option. > When viewing the trace, it would also be rather nice to be able to > cursor back up a large structure. Thanks. I'll consider that. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com