Closed Bug 563071 Opened 15 years ago Closed 15 years ago

Implement "print" and "set" commands in asdb shell debugger

Categories

(Tamarin Graveyard :: Tools, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mike, Assigned: mike)

References

Details

Attachments

(1 file, 1 obsolete file)

It would be helpful for our QE team to have the "set" and "print" commands available in asdb, the command-line debugger (the one you get when you specify -d).
Attached patch patch (obsolete) — Splinter Review
Assignee: nobody → mmoreart
Status: NEW → ASSIGNED
Attachment #442829 - Flags: review?(rreitmai)
Attached patch patchSplinter Review
Fixed a few things in the previous patch: - Removed a debugging line that I had left in accidentally - print and set now work correctly when getting or setting properties on dynamic objects -- e.g. if you say "print foo.bar", and foo is an instance of a dynamic class, and foo.bar has not yet been defiend, then it will now print "undefined"; and "set foo.bar=3" will also work. - print now correctly finds globals such as Number, e.g. "print Number.MAX_VALUE"
Attachment #442829 - Attachment is obsolete: true
Attachment #443201 - Flags: review?(rreitmai)
Attachment #442829 - Flags: review?(rreitmai)
Comment on attachment 443201 [details] [diff] [review] patch Nice! 1082 should probably contain at least an assert, possibly an error message... // what should we do with setters? functions?
Attachment #443201 - Flags: review?(rreitmai) → review+
An assert or error message wouldn't be appropriate here -- it isn't an error to see setters or functions at this point in the code. We are iterating over all of the object's traits, so there will be setters and functions; we deliberately ignore them. The comment was meant to indicate that I was pondering whether it would be good for the debugger to display them somehow rather than just ignoring them. I'll change the comment to be a little more clear.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: