From: Leslie P. P. <sk...@vi...> - 2009-04-29 14:14:45
|
Hi, I've tried an example of using the debugger that MacLachlan gives in his paper about Python. I prepared the following file, located in /home/sky/test.lisp: (declaim (optimize (debug 3))) (defstruct my-struct (slot nil :type (or integer null))) (defun source-demo (structs) (dolist (struct structs) (when (oddp (my-struct-slot struct)) (return struct)))) (source-demo (list (make-my-struct :slot 0) (make-my-struct :slot 2) (pathname "foo"))) However: debugger invoked on a TYPE-ERROR in thread #<THREAD "initial thread" RUNNING {A8C75E9}>: The value #P"foo" is not of type MY-STRUCT. [...] (SOURCE-DEMO (#S(MY-STRUCT :SLOT 0) #S(MY-STRUCT :SLOT 2) #P"foo")) source: ; file: /home/sky/test.lisp error finding source: The source path no longer exists. Is there a known problem with recording or resolving source locations? Thank you, Leslie -- LinkedIn Profile: http://www.linkedin.com/in/polzer Xing Profile: https://www.xing.com/profile/LeslieP_Polzer Blog: http://blog.viridian-project.de/ |