문제

Is there any way to get the stack trace in Specman? I patched the functions that force signals to tell me when signals are forced. I want to be able to tell where the forcing originated.

도움이 되었습니까?

해결책

print_stack_trace()

It is beautiful. I only wish I could extend the 'assert' construct so it always prints out a stack-trace like python...

btw, this method can take multiple seconds to evaluate. You don't want to do print_stack_trace() unless you need to or you've hit an assertion.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top