出错后如何查看完整的 "called from" 函数调用链?
How do you see the full "called from" chain of function calls after an error?
在 GAP 命令行解释器中出现错误后,导致错误的函数调用链被截断,因此我可以看到链的 start,它是我需要修复的功能。
gap> MyAwesomeFunction(x,y);
Error, resulting list would be too large (length infinity) called from
ConstantTimeAccessList( enum ) at /path/to/gap/lib/coll.gi:506 called from
AsList( l ) at /path/to/gap/lib/list.gi:612 called from
AsPlist( l ) at /path/to/gap/lib/list.gi:673 called from
EnumeratorSorted( Enumerator( D ) ) at /path/to/gap/lib/domain.gi:231 called from
EnumeratorSorted( C ) at /path/to/gap/lib/coll.gi:862 called from
... at line 4 of *stdin*
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk>
如何让 GAP 在此处显示完整的功能链? ...
的背后是什么?
根据, the Where 功能是这里的关键。在 break look 中输入 Where(42)
将在此“调用自”链中显示最多 42 个函数。
在 GAP 命令行解释器中出现错误后,导致错误的函数调用链被截断,因此我可以看到链的 start,它是我需要修复的功能。
gap> MyAwesomeFunction(x,y);
Error, resulting list would be too large (length infinity) called from
ConstantTimeAccessList( enum ) at /path/to/gap/lib/coll.gi:506 called from
AsList( l ) at /path/to/gap/lib/list.gi:612 called from
AsPlist( l ) at /path/to/gap/lib/list.gi:673 called from
EnumeratorSorted( Enumerator( D ) ) at /path/to/gap/lib/domain.gi:231 called from
EnumeratorSorted( C ) at /path/to/gap/lib/coll.gi:862 called from
... at line 4 of *stdin*
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk>
如何让 GAP 在此处显示完整的功能链? ...
的背后是什么?
根据Where(42)
将在此“调用自”链中显示最多 42 个函数。