From: "Simen Endsjø" <simendsjo@gmail.com>
To: guile-user@gnu.org
Subject: Breakpoints in coop-server not being hit?
Date: Thu, 02 Jul 2020 22:46:29 +0200 [thread overview]
Message-ID: <871rlt63x6.fsf@gmail.com> (raw)
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.
reply other threads:[~2020-07-02 20:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871rlt63x6.fsf@gmail.com \
--to=simendsjo@gmail.com \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).