guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

in-line trap ?


From: Matt Wette
Subject: in-line trap ?
Date: Wed, 28 Dec 2016 09:02:59 -0800

I have been going through the debugging infrastructure and can’t figure out how 
to code in a trap.  I would like something like

(define (xxx) … (if cond (trap-here)) ….)

that would dump me into the interactive debugger when I hit that condition.  
Any help on achieving this is will be appreciated.

I use this a lot in python:
#!/usr/bin/python

import pdb

def xxx:
    …
    if cond:
        pdb.set_trace()
    ….


Matt






reply via email to

[Prev in Thread] Current Thread [Next in Thread]