MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001125XdebugUsage problems (Wrong Results)public2015-03-06 11:292017-02-07 17:11
ReportersSascha 
Assigned Toderick 
PriorityurgentSeverityblockReproducibilityalways
StatusresolvedResolutionno change required 
PlatformApache Zend Server 8OSOSXOS Version10.10.2
Product Version2.3.1 
Target VersionFixed in Version 
Summary0001125: XDEBUG not working with Zends Zray
DescriptionIf you disable the Zend debugger and use Xdebug instead.
The following Problems occure:
The Debug session will always start @ zray.php
If you disable zray it's the same.

What zend does with there debugger: They seem to disable zray for the debug session. So it could be a zend problem or a xdebug feature/workaround.
Steps To Reproduce- Install ZendServer 8
- Install xdebug (pecl)
- Disable the zend debugger and add the extension.
- A IDE i use PHPSTORM
- Listen for incomming debug requests
- Create a file index.php add a breakpoint
- Reload the page it will not break @ index.php -> It looks like zray is loaded before any request on the same host (localhost) with the same php.ini and thats a problem for xdebug.
TagsNo tags attached.
Operating System
PHP Version5.4.10-5.4.14
Attached Files

- Relationships

-  Notes
(0003856)
derick (administrator)
2016-11-29 23:54

Is this still a problem for you?
(0004083)
jvandijk (reporter)
2016-12-19 11:33
edited on: 2016-12-19 12:25

Hey Derick, this problem still exists. From Zend Server 8.5 and on XDebug comes bundled. If you enable Z-Ray in combination with XDebug and start a remote debug session it will always halt execution in zray.php first when using the break at first line logic.

Due to Z-Ray, the break at first line logic will render unexpected debug behaviour. Disabling the break at first line functionality, and using normal breakpoints does work properly.

(0004086)
derick (administrator)
2016-12-19 12:01

If this is their auto_prepend file, or something similar through an extension, there is little I can do about this. The "break at first line" is functionality provided by an IDE - perhaps you can convince them to not stop at a first line if the file is zray.php?
(0004088)
jvandijk (reporter)
2016-12-19 12:38

No it's an iframe that runs on the same domain. The question is: because it's an iframe should I see 2 debug calls or not?

PHPStorm offers 'skip' Z-Ray functionality indeed for the Zend Debugger, just not for XDebug.
(0004089)
derick (administrator)
2016-12-19 12:44

Yes, you should see two calls. PhpStorm *does* support multiple simultaneous debugging connections, but you need to turn that on at Languages & Frameworks ? PHP ? Debug ? External Connections ? Max. simultaneous connections.

If you increase that from 1 to something higher, you should get two debugging sessions. I would ask PhpStorm to also allow the "Ignore Z-Ray system requests" flag to work for Xdebug - they have an issue tracker at https://youtrack.jetbrains.com [^]
(0004090)
sSascha (reporter)
2016-12-19 12:44

Thx jvandijk for stepping in. I'm currently far away from php more in .net and javascript.

@derick:
Yes the problem is phpstorm offers to disable zray for debug sessions. I hope you can find a solution... probably talking to the guys from jetbrains or zend?
(0004092)
derick (administrator)
2016-12-19 18:37

(Flipping this back to Feedback to allow @jvandijk to give feedback on the simultaneous connections setting in PhpStorm)
(0004169)
derick (administrator)
2017-01-10 14:22

@jvandijk ?
(0004203)
derick (administrator)
2017-02-07 17:11

I am closing this, as this does not seem to be a bug in Xdebug. Please feel free to reopen this if you can provide more information as requested.

- Issue History
Date Modified Username Field Change
2015-03-06 11:29 sSascha New Issue
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2016-11-29 23:54 derick Note Added: 0003856
2016-11-29 23:54 derick Assigned To => derick
2016-11-29 23:54 derick Status new => feedback
2016-12-19 11:33 jvandijk Note Added: 0004083
2016-12-19 12:01 derick Note Added: 0004086
2016-12-19 12:25 jvandijk Note Edited: 0004083 View Revisions
2016-12-19 12:38 jvandijk Note Added: 0004088
2016-12-19 12:44 derick Note Added: 0004089
2016-12-19 12:44 sSascha Note Added: 0004090
2016-12-19 12:44 sSascha Status feedback => assigned
2016-12-19 18:37 derick Note Added: 0004092
2016-12-19 18:37 derick Status assigned => feedback
2017-01-10 14:22 derick Note Added: 0004169
2017-02-07 17:11 derick Note Added: 0004203
2017-02-07 17:11 derick Status feedback => resolved
2017-02-07 17:11 derick Resolution open => no change required


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker