Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63259 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41307 invoked from network); 4 Oct 2012 07:45:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Oct 2012 07:45:55 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:55252] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/9A-03751-3BE3D605 for ; Thu, 04 Oct 2012 03:45:55 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 052EDDE14B; Thu, 4 Oct 2012 08:45:53 +0100 (BST) Date: Thu, 4 Oct 2012 08:45:52 +0100 (BST) X-X-Sender: derick@whisky.home.derickrethans.nl To: Stas Malyshev cc: PHP Internals , "nikic@php.net" In-Reply-To: <50691A4F.70702@sugarcrm.com> Message-ID: References: <50691A4F.70702@sugarcrm.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] generators & php tools From: derick@php.net (Derick Rethans) On Sun, 30 Sep 2012, Stas Malyshev wrote: > I was looking into generators topic and I couldn't find answer to this > question: how generators are supposed to interact with PHP tools, such > as debuggers, profilers, etc.? Specifically, how calls to generator > are handled? Usually, the tool overrides zend_execute and > zend_execute_internal and every function call goes through there. But > generator does not use these - it uses execute_ex instead. So can > generator be debugged/profiled? What happens if I say "step out" > inside generator - would that work? It won't work with Xdebug right now, as it indeed overrides just zend_execute and zend_execute_internal --- we should definitely look at fixing generators that they go through those as well. It's related to the zend_execute_internal hook missing from the other email that I just replied to (and your PR 178). cheers, Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug Posted with an email client that doesn't mangle email: alpine