A PRACTICAL GRAPHICAL TRACER FOR PROLOG

被引:6
作者
BRAYSHAW, M
EISENSTADT, M
机构
[1] Human Cognition Research Laboratory
来源
INTERNATIONAL JOURNAL OF MAN-MACHINE STUDIES | 1991年 / 35卷 / 05期
关键词
D O I
10.1016/S0020-7373(05)80180-4
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
We describe a practical and enhanced implementation of a graphical Prolog tracer which not only provides a faithful (slow-motion) representation of the inner workings of the Prolog interpreter, but also allows a high-speed visual overview of execution for rapidly homing in on buggy code. The current work extends our original "Transparent Prolog Machine" in the following ways: (a) complex unification histories for given variables can be displayed; (b) cross-variable dependencies (sharing) across widely-dispersed sections of code can be highlighted; (c) an earlier defect, wherein a given user could write code which defeated the speed/size of the current fastest/largest display capability (i.e. a "horizon effect") is dealt with; (d) users of textual (Byrd Box) tracers are provided with an upward-compatible migration pathway; (e) code can be traced either "live" or "retrospectively" at different grains of detail. We distinguish among four different ways of manipulating the "navigational space" produced by large Prolog programs: (a) by granularity, i.e. coarse-grained vs fine-grained; (b) by scale, i.e. close-up vs far away; (c) by compression, i.e. the use of a single compact display region or symbol to indicate "additional territory", at the same granularity and scale; (d) by abstraction, i.e. a movement away from the raw Prolog code and towards a representation closer to the programmer's own plans and intentions. The paper includes detailed examples of the tracer in action. © 1991 Academic Press Limited.
引用
收藏
页码:597 / 631
页数:35
相关论文
共 39 条
[1]  
BERLINER HJ, 1973, 3RD P INT JOINT C AR, P77
[2]  
Bratko I, 2012, PROLOG PROGRAMMING A
[3]  
BRAYSHAW M, 1988, LOGIC PROGRAMM, V1, P532
[4]  
BRAYSHAW M, 1991, 75 OP U HUM COGN RES
[5]  
BROWN GP, 1985, IEEE COMPUTER AUG, P25
[6]   TECHNIQUES FOR ALGORITHM ANIMATION [J].
BROWN, MH ;
SEDGEWICK, R .
IEEE SOFTWARE, 1985, 2 (01) :28-39
[7]  
BROWN MH, 1983, CS8328 BROWN U DEP C
[8]  
BROWN MH, 1988, ALGORITHM ANIMATION
[9]  
BYRD L, 1980, 1980 P LOG PROGR WOR, P127
[10]  
Clocksin W. F., 1984, PROGRAMMING PROLOG