unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Breakpoints in coop-server not being hit?
@ 2020-07-02 20:46 Simen Endsjø
  0 siblings, 0 replies; only message in thread
From: Simen Endsjø @ 2020-07-02 20:46 UTC (permalink / raw)
  To: guile-user


Hi, I'm having some problems with coop-server. I'm trying to set a 
breakpoint,
but it's never hit

    (use-modules (system repl coop-server))

    (define repl (spawn-coop-repl-server))

    ;; I can `,i cnt`, and the repl stops and when I quit, it 
    continues
    (define cnt 0)

    ;; But when I do `,br break-here` I get
    ;; Trap 0: Breakpoint at #<procedure break-here (x)>.
    ;; But execution never stops, and the breakpoint is never hit.
    (define (break-here x) (display x) (newline))

    (while #t
        (poll-coop-repl-server repl)
        (break-here cnt)
        (set! cnt (+ 1 cnt))
        (sleep 1))

Inspecting something will break the process, as will exceptions, 
but breakpoints
I set doesn't seem to get hit. I'm totally new to Guile, so I 
might be way off
here.

I start the process on the commandline with just `guile 
coop-test.scm`, and then
use `connect-to-guile` in emacs.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-02 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 20:46 Breakpoints in coop-server not being hit? Simen Endsjø

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).