Re: Compile and Debug quickload'ed CAPI app with LW7.0 for OSX
Hi,
That is exactly what I thought should work, but this doesn't.
About defsys, should I keep 2 configuration files then: one asdf and
another defsys in order to debug with LW and deploy/manage external
dependencies with QL?
Paul Tarvydas <paultarvydas@gmail.com> writes:
> I would guess that setting breakpoints is part of the toolchain and that
> quicklisp is not (yet) part of the LW toolchain. (Debuggers need to modify the
> actual code).
>
> Try this: after quickloading, do file>>compile&load the file you want to debug.
> Then set the breakpoint.
>
> I generally use defsys.lisp and lispworks>>tools>>system browser to do builds in
> the LW toolchain. That works.
>
> pt
>
>> On Mar 20, 2016, at 9:14 AM, Alexey Veretennikov <txm.fourier@gmail.com> wrote:
>>
>>
>> Hi,
>>
>> I'm trying to write CAPI app and compile/load it locally via
>> quickload.
>> So I start the session, execute the (ql:quickload "myapp") and start
>> working.
>> When I do changes, I can recompile the buffers, restart the app
>> and see what my changes applied.
>>
>> Here is the compilation output example:
>>
>> ;;; Safety = 3, Speed = 1, Space = 1, Float = 1, Interruptible = 1
>> ;;; Compilation speed = 1, Debug = 2, Fixnum safety = 3
>> ;;; Source level debugging is on
>> ;;; Source file recording is on
>> ;;; Cross referencing is on
>> ; (TOP-LEVEL-FORM 0)
>> ;;;*** Warning in (PACKAGE "MEDIAIMPORT-UI"): Using DEFPACKAGE to modify #<The
>> MEDIAIMPORT-UI package, 39/64 internal, 1/16 external>.
>> ; (DEFPACKAGE "MEDIAIMPORT-UI")
>>
>> However I cannot use a debugger. If I set the breakpoint using toolbar
>> it is ignored, if I set it manually via (break) function, the dialog
>> appears:
>>
>> Debug-Break in process "Cocoa Event Loop" {undebuggable process}
>>
>> and no possibility to use source-level debug.
>> Nothing changes if I set (declaim (optimize (debug 3))) in the beginning
>> of the file or in REPL.
>>
>> If I load any CAPI example using example-edit-file and compile it,
>> debugging works ok.
>>
>> Is where a way to get debugging to work for my initially quickload'ed app?
>>
>> --
>> Br,
>> /Alexey
>>
>> _______________________________________________
>> Lisp Hug - the mailing list for LispWorks users
>> lisp-hug@lispworks.com
>> http://www.lispworks.com/support/lisp-hug.html
>>
>
--
Br,
/Alexey
_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html