| Anonymous | Login | Signup for a new account | 2013-05-22 20:11 BST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0000895 | Xdebug | Usage problems | public | 2012-10-18 18:18 | 2012-10-18 22:53 | |||
| Reporter | expert | |||||||
| Assigned To | derick | |||||||
| Priority | high | Severity | major | Reproducibility | always | |||
| Status | resolved | Resolution | duplicate | |||||
| Platform | Linux | OS | CentOS | OS Version | 6.3 | |||
| Product Version | 2.2.1 | |||||||
| Target Version | Fixed in Version | |||||||
| Summary | 0000895: xdebug never stops on single-line statements | |||||||
| Description | Xdebug never stops on break-points on single-line statements. But it works if you surround single-line statement with curly braces. | |||||||
| Steps To Reproduce | Consider following php code <?php $d=date("D"); if ($d=="Fri") { echo "Have a nice weekend!"; } else echo "Have a nice day!"; ?> If I set break-point on second echo debugger will never stop there. But if I surround it with curly braces (like in case of first echo) it will. It's quite unfortunate behavior which complicates debugging. | |||||||
| Additional Information | This behavior tested in following IDEs: 1) Intellij IDEA 11 2) PhpStorm 5.0.2 3) Notepad++ with DBGP Plugin v0.0.13.27 Output of my phpinfo is here http://fiddle.jshell.net/BJZwQ/show/ [^] Same question asked on SO is here: http://stackoverflow.com/questions/12940286/xdebug-never-stops-on-single-line-statements [^] | |||||||
| Tags | No tags attached. | |||||||
| Operating System | ||||||||
| PHP Version | 5.3.10 | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0002364) derick (administrator) 2012-10-18 22:53 |
This is a duplicate of 0000842 - and sadly not something I can fix as it has to do with how the PHP interpreter assigns line numbers to generated execution units. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-10-18 18:18 | expert | New Issue | |
| 2012-10-18 22:53 | derick | Note Added: 0002364 | |
| 2012-10-18 22:53 | derick | Relationship added | duplicate of 0000842 |
| 2012-10-18 22:53 | derick | Status | new => resolved |
| 2012-10-18 22:53 | derick | Resolution | open => duplicate |
| 2012-10-18 22:53 | derick | Assigned To | => derick |
| Copyright © 2000 - 2011 MantisBT Group |