unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* guile-debugging and breakpoints
@ 2006-12-24  1:48 Volkan YAZICI
  2006-12-29  2:29 ` Neil Jerram
  0 siblings, 1 reply; 9+ messages in thread
From: Volkan YAZICI @ 2006-12-24  1:48 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

Hi,

[I've some questions about guile-debugging package and because of I
couldn't find a suitable place to ask, I decided to post them in here.
I hope it's ok.]

While executing an s-exp with some breakpoints, everything goes
fine. But after I finish the execution and want to re-execute the code
with same breakpoints, this time gds just returns the result. It doesn't
pop-up a stack window for stepping as it did previously. Has anybody
ever experienced a similar problem? How can I fix this?

BTW, I think, requirement of a region to set/delete a breakpoint is
quite inconvenient. Therefore I've written two small emacs functions
which sets/deletes the breakpoint in the backward-up-list. (At least
it's better than manually searching with (search-forwards "(") as
current guile-debugging does.) I attached them with the post, in case of
anybody would be interested in.

guile-debugging is an awesome project. I hope its development won't stop
and be as stable/functional as guile.


Regards.

[-- Attachment #2: gds-scheme-extras.el --]
[-- Type: text/plain, Size: 855 bytes --]

(defun my-gds-set-breakpoint ()
  "Create a new GDS breakpoint at point."
  (interactive)
  (save-excursion
    ;; Find the beginning of the current s-exp. (BACKWARD-UP-LIST will
    ;; raise an error for us in case of it couldn't find a valid upper
    ;; s-exp.)
    (backward-up-list)
    (or (gds-breakpoint-overlays-at (point)) ; Do we already have one?
	;; Mark the position and save to breakpoints file.
	(and (gds-make-breakpoint-overlay
	      (list gds-default-breakpoint-type
		    'at
		    buffer-file-name
		    (gds-line-and-column (point))))
	     (gds-write-breakpoints-file)))))

(defun my-gds-delete-breakpoint ()
  "Delete the GDS breakpoint set at point."
  (interactive)
  (save-excursion
    (forward-char)
    (backward-up-list)
    (if (gds-breakpoint-overlays-at (point))
	(call-interactively (function gds-delete-breakpoint)))))

[-- Attachment #3: Type: text/plain, Size: 140 bytes --]

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-01-14 10:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-24  1:48 guile-debugging and breakpoints Volkan YAZICI
2006-12-29  2:29 ` Neil Jerram
2007-01-10 15:33   ` Volkan YAZICI
2007-01-14  1:01     ` Neil Jerram
2007-01-14  9:38       ` Volkan YAZICI
2007-01-10 15:45   ` Volkan YAZICI
2007-01-14  1:30     ` Neil Jerram
2007-01-14  9:03       ` Volkan YAZICI
2007-01-14 10:21         ` Neil Jerram

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