Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion attaching debuggers

Newsgroups: perl.perl6.internals
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <mic...@sabren.com>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Delivered-To: perl6-intern...@perl.org
Date: Fri, 19 Sep 2003 19:53:58 -0400 (EDT)
X-X-Sender: s...@hydrogen.sabren.com
To: Nicholas Clark <n...@ccl4.org>
cc: perl6-intern...@perl.org
Subject: Re: attaching debuggers
In-Reply-To: <20030919202225.Q4286@plum.flirble.org>
Message-ID: <Pine.LNX.4.44.0309191952130.1998-100000@hydrogen.sabren.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Check-By: one.develooper.com
X-Spam-Status: No, hits=-1.4 required=7.0 tests=CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,SPAM_PHRASE_01_02,USER_AGENT_PINE version=2.44
X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/
Approved: n...@nntp.perl.org
From: mic...@sabren.com (Michal Wallace)
References: <20030919202225.Q4286@plum.flirble.org>
Lines: 28

On Fri, 19 Sep 2003, Nicholas Clark wrote:

[talking about dynamically intering the debugger]
>
> Can anyone see a sane way to do it?
> 
> Better still, can anyone see a viable way to do it on perl5?

Python does this. There's basically a hook after every
statement, and you can put whatever you want in there.
I have no idea how it works internally, but from your
code you just put this in your code:

import pdb; pdb.set_trace()

and it stops right there and you're in the debugger.

Sincerely,
 
Michal J Wallace
Sabren Enterprises, Inc.
-------------------------------------
contact: mic...@sabren.com
hosting: http://www.cornerhost.com/
my site: http://www.withoutane.com/
--------------------------------------