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)
Tamarin Graveyard
Tools
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mike, Assigned: mike)
References
Details
Attachments
(1 file, 1 obsolete file)
29.40 KB,
patch
|
rreitmai
:
review+
|
Details | Diff | Splinter Review |
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).
Assignee | ||
Comment 1•15 years ago
|
||
Assignee | ||
Comment 2•15 years ago
|
||
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 3•15 years ago
|
||
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?
Updated•15 years ago
|
Attachment #443201 -
Flags: review?(rreitmai) → review+
Assignee | ||
Comment 4•15 years ago
|
||
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.
Assignee | ||
Comment 5•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Blocks: tamarin-debugging
You need to log in
before you can comment on or make changes to this bug.
Description
•