[xdebug-dev] Bug 0000262: Supporting break command with minimum overhead

From: <noreply[@]lists.xdebug.org>
Date: Tue, 1 May 2007 06:57:57 +0200

The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000262
======================================================================
Reporter: jun
Handler:
======================================================================
Project: Xdebug
Bug ID: 262
Category: Debug client (console)
Reproducibility: always
Severity: trivial
Priority: normal
Status: new
Operating System:
PHP Version: 5.1.6
Xdebug Version: 2.0.0rc4-dev
======================================================================
Date Submitted: 2007-05-01 06:57 CEST
Last Modified: 2007-05-01 06:57 CEST
======================================================================
Summary: Supporting break command with minimum overhead
Description:
Currently Xdebug does not accept break command while
the language engine is running.

I guess that the main reason of it is performance.
Checking in-comming command on every statement execution
is too expensive. May be my guess is wrong.

So, how about checking in-comming (break) command every
100 (or 255, whatever) statements execution.

static unsigned char counter = 0;
if (++counter == 0)
{
    /* check for incomming break/status command */
    ...
}

This way, performance down should not be so bad, and
at least I can break the target execution from debugger
client without restarting Apache ;-)

======================================================================

Bug History
Date Modified Username Field Change
======================================================================
2007-05-01 06:57jun New Bug
2007-05-01 06:57jun Bug Monitored: jun
======================================================================
Received on Tue May 01 2007 - 06:58:01 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST