View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000586 | LDMud | Efuns | public | 2008-12-12 16:18 | 2008-12-29 17:15 |
| Reporter | fufu | Assigned To | |||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | new | Resolution | open | ||
| Summary | 0000586: Allow querying single stack frames using debug_info(DINFO_TRACE) | ||||
| Description | There is some demand for efuns like previous_function(), previous_program() and a variant of previous_object that reflects the actual control stack. In principle, debug_info(DINFO_TRACE, DIT_CURRENT) provides this information already, but it only allows to query the whole stack trace at once, and building that isn't exactly cheap. Proposal: Add an extra (optional) argument to debug_info: debug_info(DINFO_TRACE, DIT_CURRENT, n) would return the current (n=0), calling (n=1), and so on stack frame info, or 0 if the stack depth is exceeded. For consistency this should also be implemented for DIT_ERROR and DIT_UNCAUGHT_ERROR. Interestingly, performance is not an issue in those cases: The array is built when the error happens, and debug_info() just returns a reference to that. | ||||
| Tags | No tags attached. | ||||
| External Data (URL) | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2008-12-12 16:18 | fufu | New Issue | |
| 2008-12-29 17:12 | zesstra | Relationship added | related to 0000569 |
| 2008-12-29 17:15 | zesstra | Note Added: 0000842 | |
| 2009-09-30 15:58 | zesstra | Relationship added | duplicate of 0000262 |
| 2009-10-02 07:55 | zesstra | Relationship added | related to 0000202 |