unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Attila Lendvai <attila@lendvai.name>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>,
	zimoun <zimon.toutoune@gmail.com>,
	guix-devel <guix-devel@gnu.org>
Subject: Re: Guile debugger workgroup?
Date: Wed, 30 Nov 2022 03:44:52 +0000	[thread overview]
Message-ID: <fKM0csEkUc4fwA0LK_iyFxpsSx-Q1IEFkfRYfDmv9HQB2QMYwzoaiGK15px6kap7kdnfbknUMzALSzHzDyaoGbYTHfLDp1O9E5uDFJLh9ek=@lendvai.name> (raw)
In-Reply-To: <87k03e6td6.fsf@gnu.org>

> > > The scenario you describe above should be possible above (there is a
> > > debugger that supports breakpoints and single stepping). Now, it may
> > > be, as you wrote, that inlining can lead breakpoints to never be hit, or
> > > that there are bugs in this area. These things should be fixed, I agree.
> > 
> > i'm sure there's a way to globally override the debug/optimization/inlining level in guile to make sure the code compiles in a way that no breakpoints are missed (and/or backtraces remain more intact, etc).
> 
> 
> Note that I’m not even sure this bug exists (hence “may” :-)) but if it
> does, you’re right, it’s probably a matter of compiling with -O1.


i would be quite surprised if brakepoints in Guile worked on inlined function invocations... but hey! i like positive surprises! :)

but in general, optimized code is usually less debuggable due to the tradeoffs taken. having a means to force parts of the codebase to run in unoptimized form is usually very helpful when debugging.

and sometimes it makes sense to straight out force parts of the code to always be unoptimized, or run in the interpreter, if it's not in a hotspot of the codebase, and it's expected to be involved often in situations where errors are raised.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Liberty means responsibility. That is why most men dread it.”
	— George Bernard Shaw (1856–1950), 'Man and Superman'



  reply	other threads:[~2022-11-30  3:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20221027035100.28852-1-maxim.cournoyer@gmail.com>
     [not found] ` <20221027035100.28852-3-maxim.cournoyer@gmail.com>
     [not found]   ` <87leojon1z.fsf_-_@gnu.org>
     [not found]     ` <877d03xywl.fsf@gmail.com>
     [not found]       ` <87sfihfpng.fsf_-_@gnu.org>
     [not found]         ` <86zgcpju9p.fsf@gmail.com>
     [not found]           ` <87y1s82o23.fsf@gmail.com>
     [not found]             ` <87zgckwdtw.fsf@gmail.com>
     [not found]               ` <87sficqb71.fsf@gmail.com>
     [not found]                 ` <86fsebdpl9.fsf@gmail.com>
2022-11-25 15:23                   ` Guile debugger workgroup? (was: Coding style: similarly-named variables) Maxim Cournoyer
2022-11-26 11:22                     ` Guile debugger workgroup? Ludovic Courtès
2022-11-27  3:16                       ` Maxim Cournoyer
2022-11-28 10:53                         ` Ludovic Courtès
2022-11-28 13:41                           ` Attila Lendvai
2022-11-28 14:50                             ` Maxim Cournoyer
2022-11-29  8:46                             ` Ludovic Courtès
2022-11-30  3:44                               ` Attila Lendvai [this message]
2022-11-27 12:04                       ` zimoun
2022-11-28  0:27                         ` Maxim Cournoyer
2022-11-28 11:06                         ` Ludovic Courtès
2022-11-28 12:31                           ` zimoun
2022-11-27 20:46                       ` Attila Lendvai
2022-11-28  0:41                         ` David Pirotte
2022-11-28  0:45                           ` David Pirotte
2022-11-28  2:06                         ` Maxim Cournoyer
2022-11-28  7:22                           ` Joshua Branson
2022-11-28 11:09                         ` Ludovic Courtès
2022-11-28 14:12                           ` Attila Lendvai
2022-11-29  8:54                             ` Ludovic Courtès
2022-11-28 12:24                     ` Guile debugger workgroup? (was: Coding style: similarly-named variables) Csepp
2022-11-30  7:09                     ` Guile debugger workgroup? Jannneke Nieuwenhuizen

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://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='fKM0csEkUc4fwA0LK_iyFxpsSx-Q1IEFkfRYfDmv9HQB2QMYwzoaiGK15px6kap7kdnfbknUMzALSzHzDyaoGbYTHfLDp1O9E5uDFJLh9ek=@lendvai.name' \
    --to=attila@lendvai.name \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    --cc=zimon.toutoune@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).