Slimv backtrace不显示局部变量

时间:2015-08-13 03:13:01

标签: common-lisp clisp slimv

我刚刚安装了Slimv以最大化lisp黑客攻击,而且我无法从调试器中获得任何有用的东西。

如果我输入REPL

(+ 1 a)

我收到以下错误,这很好

EVAL: variable A has no value
   [Condition of type SYSTEM::SIMPLE-UNBOUND-VARIABLE]

......它伴随着疯狂的回溯

Backtrace:

0: [520] frame binding variables (~ = dynamically):  | ~ SWANK::*SLDB-STEPPING-P* <--> NIL 
    No locals
1: [517] frame binding variables (~ = dynamically):  | ~ SWANK::*SLDB-LEVEL* <--> 0
2: [514] frame binding variables (~ = dynamically):  | ~ *PACKAGE* <--> #<PACKAGE COMMON-LISP-USER>
3: <1/507> #<COMPILED-FUNCTION SWANK::DEBUG-IN-EMACS>[506] frame binding variables (~ = dynamically):  | ~ SWANK::*SLIME-INTERRUPTS-ENABLED* <--> T
4: <1/501> #<COMPILED-FUNCTION SWANK:INVOKE-SLIME-DEBUGGER>- #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2-1>
5: <1/499> #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2-1>- #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2-1>
6: [498] frame binding variables (~ = dynamically):  | ~ *DEBUGGER-HOOK* <--> NIL
7: <1/494> #<COMPILED-FUNCTION #:|877 882 (DEFINTERFACE CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-84-3-1|>- #<COMPILED-FUNCTION #:|877 882 (DEFINTERFACE CALL-WITH-DEBUGGER-HOOK (HOOK FUN) ...)-84-3-1|>
8: <1/489> #<COMPILED-FUNCTION SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK>- #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2>
9: <1/486> #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2>- #<COMPILED-FUNCTION SWANK::SWANK-DEBUGGER-HOOK-2>
10: [485] handler frame for conditions SWANK::INVOKE-DEFAULT-DEBUGGER
11: [479] compiled tagbody frame for #(NIL)
12: <1/473> #<COMPILED-FUNCTION SWANK:SWANK-DEBUGGER-HOOK>[471] frame binding variables (~ = dynamically):  | ~ *DEBUGGER-HOOK* <--> #<COMPILED-FUNCTION SWANK:SWANK-DEBUGGER-HOOK>
13: <1/468> #<SYSTEM-FUNCTION INVOKE-DEBUGGER> 1[467] frame binding variables (~ = dynamically):  | ~ SYSTEM::*PRIN-STREAM* <--> #<UNBOUND>
14: [464] frame binding variables (~ = dynamically):  | ~ *PRINT-READABLY* <--> NIL
15: [461] frame binding variables (~ = dynamically):  | ~ *PRINT-ESCAPE* <--> T
16: <1/458> #<SYSTEM-FUNCTION ERROR>[457] frame binding variables (~ = dynamically):  | ~ SYSTEM::*ACTIVE-RESTARTS* <--> (#S(RESTART :NAME SWANK::RETRY :TEST #<COMPILED-FUNCTION SYSTEM::DEFAULT-RESTART..
17: [454] frame binding variables (~ = dynamically):  | ~ SYSTEM::*CONDITION-RESTARTS* <--> NIL
18: [450] compiled block frame for SYSTEM::CHECK-VALUE
19: <1/445> #<COMPILED-FUNCTION SYSTEM::CHECK-VALUE>- NIL ~

那么,到底发生了什么,我该如何解决?

1 个答案:

答案 0 :(得分:0)

嗯,这是使用调试器然后进入正常模式(按ESC)

  

如果将光标放在Backtrace:部分的编号行上   然后按Enter键(在正常模式下),然后显示帧本地:

     

如果在“重新启动:”部分的编号行上按Enter,则   执行相应的重启。最常用的   restarts有自己的键盘快捷键:,a选择Abort,q   选择Quit,然后选择contiNue restart。我们选择吧   重启1:[* ABORT]按,a:

返回SLIME的顶级

您可以使用slimv tutorial

了解更多信息