Zend Debugger stops step by step code execution after the First "defined" Statement

Answered

Hey, 

I'm Using PHPStorm 2016.3 with an Local Zendserver  8.5. 

 

When i try do debug using the Zray Toolbar the zDebug extension does make Contact with PHP Storm and I'M albe to go step by step via F7, now the Strange thing is that ass soon as i reach the first "defined"  statement, it leave the code execution.

Below is the Log file from PHPStorm!

 

any IDEA where i can start the problem searching?

 

lg jan

 

2016-11-24 10:58:05,417 [ 59159] DEBUG - .connection.PhpDebugConnection - 1397221499#----connection started
2016-11-24 10:58:05,555 [ 59297] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# Stop at ('D:\websiteroot\index.php':9)
2016-11-24 10:58:05,555 [ 59297] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# remote: 'D:\websiteroot\index.php' <-> local: 'D:\websiteroot\index.php'
2016-11-24 10:58:05,561 [ 59303] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\index.php:9,
2016-11-24 10:58:13,873 [ 67615] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# Stop at ('D:\websiteroot\index.php':10)
2016-11-24 10:58:13,873 [ 67615] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# remote: 'D:\websiteroot\index.php' <-> local: 'D:\websiteroot\index.php'
2016-11-24 10:58:13,874 [ 67616] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\index.php:10,
2016-11-24 10:58:14,282 [ 68024] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# Stop at ('D:\websiteroot\index.php':11)
2016-11-24 10:58:14,282 [ 68024] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# remote: 'D:\websiteroot\index.php' <-> local: 'D:\websiteroot\index.php'
2016-11-24 10:58:14,283 [ 68025] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\index.php:11,
2016-11-24 10:58:14,588 [ 68330] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# Stop at ('D:\websiteroot\head.php':10)
2016-11-24 10:58:14,588 [ 68330] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# remote: 'D:\websiteroot\head.php' <-> local: 'D:\websiteroot\head.php'
2016-11-24 10:58:14,588 [ 68330] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\head.php:10,
2016-11-24 10:58:14,589 [ 68331] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\index.php:11,
2016-11-24 10:58:15,483 [ 69225] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# Stop at ('D:\websiteroot\head.php':13)
2016-11-24 10:58:15,483 [ 69225] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# remote: 'D:\websiteroot\head.php' <-> local: 'D:\websiteroot\head.php'
2016-11-24 10:58:15,483 [ 69225] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\head.php:13,
2016-11-24 10:58:15,483 [ 69225] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\index.php:11,
2016-11-24 10:58:17,260 [ 71002] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# Stop at ('D:\websiteroot\head.php':31)
2016-11-24 10:58:17,261 [ 71003] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# remote: 'D:\websiteroot\head.php' <-> local: 'D:\websiteroot\head.php'
2016-11-24 10:58:17,262 [ 71004] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\head.php:31,
2016-11-24 10:58:17,262 [ 71004] DEBUG - p.debug.common.PhpDebugProcess - 1226043282# frame: D:\websiteroot\index.php:11,
2016-11-24 10:58:20,756 [ 74498] DEBUG - .connection.PhpDebugConnection - 1397221499#---Connection reset
2016-11-24 10:58:20,756 [ 74498] DEBUG - .connection.PhpDebugConnection - 1397221499#---stop writing
2016-11-24 10:58:20,756 [ 74498] DEBUG - .connection.PhpDebugConnection - 1397221499#---stop reading
2016-11-24 10:58:20,756 [ 74498] DEBUG - .connection.PhpDebugConnection - 1397221499#----connection stopped
2016-11-24 10:58:23,926 [ 77668] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.

 

 

0
3 comments
2016-11-24 10:58:20,756 [ 74498] DEBUG - .connection.PhpDebugConnection - 1397221499#---Connection reset

It seems that the debugger itself breaks the connection.

Could you please try debugging a simple script like:

define('A', 2);

if(defined("A")) {print "Defined!<br>";}

echo A;
0
Avatar
Permanently deleted user

That produces the Following output:

(I used the Setting "Stop at first Line" and Itterated through the 2 Lines Using F7,
If i execute the Script without the Debugger it runs normal)


2016-12-07 18:58:41,964 [ 6170] INFO - tor.impl.FileEditorManagerImpl - Project opening took 3493 ms
2016-12-07 18:58:45,223 [ 9429] INFO - tellij.xml.Html5SchemaProvider - HTML5_SCHEMA_LOCATION = D:/PhpStorm 2016.3/lib/phpstorm.jar!/resources/html5-schema/html5.rnc
2016-12-07 18:58:45,224 [ 9430] INFO - tellij.xml.Html5SchemaProvider - XHTML5_SCHEMA_LOCATION = D:/PhpStorm 2016.3/lib/phpstorm.jar!/resources/html5-schema/xhtml5.rnc
2016-12-07 18:58:45,224 [ 9430] INFO - tellij.xml.Html5SchemaProvider - CHARS_DTD_LOCATION = D:/PhpStorm 2016.3/lib/phpstorm.jar!/resources/html5-schema/html5chars.ent
2016-12-07 18:58:58,261 [ 22467] DEBUG - .connection.PhpDebugConnection - 6004481#----connection started
2016-12-07 18:58:58,423 [ 22629] DEBUG - p.debug.common.PhpDebugProcess - 5515700# Stop at ('D:\Websites\dokutool_extern\index.php':3)
2016-12-07 18:58:58,423 [ 22629] DEBUG - p.debug.common.PhpDebugProcess - 5515700# remote: 'D:\Websites\dokutool_extern\index.php' <-> local: 'D:\Websites\dokutool_extern\index.php'
2016-12-07 18:58:58,428 [ 22634] DEBUG - p.debug.common.PhpDebugProcess - 5515700# frame: D:\Websites\dokutool_extern\index.php:3,
2016-12-07 18:59:00,938 [ 25144] DEBUG - p.debug.common.PhpDebugProcess - 5515700# Stop at ('D:\Websites\dokutool_extern\index.php':4)
2016-12-07 18:59:00,938 [ 25144] DEBUG - p.debug.common.PhpDebugProcess - 5515700# remote: 'D:\Websites\dokutool_extern\index.php' <-> local: 'D:\Websites\dokutool_extern\index.php'
2016-12-07 18:59:00,939 [ 25145] DEBUG - p.debug.common.PhpDebugProcess - 5515700# frame: D:\Websites\dokutool_extern\index.php:4,
2016-12-07 18:59:02,044 [ 26250] DEBUG - .connection.PhpDebugConnection - 6004481#---Connection reset
2016-12-07 18:59:02,044 [ 26250] DEBUG - .connection.PhpDebugConnection - 6004481#---stop writing
2016-12-07 18:59:02,044 [ 26250] DEBUG - .connection.PhpDebugConnection - 6004481#---stop reading
2016-12-07 18:59:02,044 [ 26250] DEBUG - .connection.PhpDebugConnection - 6004481#----connection stopped

0
Avatar
Permanently deleted user

Ah Close this...found the Problem Was in the ZendDebugger after All...

It seems that it is acting funny when debugging Remotely while Opcache is enabled.

I disabled it and everthing is working fine.

0

Please sign in to leave a comment.