com php-src: - Added support to set breakpoint in the current place: phpdbg_prompt.c
| From: | Bob Weinand | Date: | Fri, 22 Nov 2013 23:05:25 +0000 |
| Subject: | com php-src: - Added support to set breakpoint in the current place: phpdbg_prompt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-74704@lists.php.net to get a copy of this message | ||
Commit: 4a6f7373a32ee6dd5cb71324cf2312d98659cf27
Author: Felipe Pena <felipensp@gmail.com> Fri, 22 Nov 2013 21:05:25 -0200
Parents: 7a6ed70552ec40dcc6d5469d3b34d68f2e783c4c
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4a6f7373a32ee6dd5cb71324cf2312d98659cf27
Log:
- Added support to set breakpoint in the current place
Changed paths:
M phpdbg_prompt.c
Diff:
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c
index 500f532..8f79595 100644
--- a/phpdbg_prompt.c
+++ b/phpdbg_prompt.c
@@ -753,6 +753,11 @@ PHPDBG_COMMAND(info) /* {{{ */
PHPDBG_COMMAND(break) /* {{{ */
{
switch (param->type) {
+ case EMPTY_PARAM:
+ phpdbg_set_breakpoint_file(
+ zend_get_executed_filename(TSRMLS_C),
+ zend_get_executed_lineno(TSRMLS_C) TSRMLS_CC);
+ break;
case ADDR_PARAM:
phpdbg_set_breakpoint_opline(param->addr TSRMLS_CC);
break;