gwomacks / php-debug

Atom Text Editor package for PHP debugging
MIT License
119 stars 31 forks source link

Breakpoints stopped working, no xdebug commands are being sent #236

Closed kenorb closed 6 years ago

kenorb commented 7 years ago

I've placed the breakpoint, but after refreshing the page, it's not stopped.

screen shot 2017-07-24 at 22 53 26

Notes:

Log from xdebug after refreshing the page:

Log opened at 2017-07-24 21:54:34
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/kenorb/Sites/OM/docroot/index.php" language="PHP" xdebug:language_version="7.1.5" protocol_version="1.0" appid="7097" idekey="xdebug-cli"><engine version="2.5.4"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright></init>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

Log closed at 2017-07-24 21:54:39

Log opened at 2017-07-24 21:54:42
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/kenorb/Sites/OM/docroot/index.php" language="PHP" xdebug:language_version="7.1.5" protocol_version="1.0" appid="7097" idekey="xdebug-cli"><engine version="2.5.4"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright></init>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

Log closed at 2017-07-24 21:54:42

Log opened at 2017-07-24 21:54:42
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Checking header 'REMOTE_ADDR'.
I: Remote address found, connecting to 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///Users/kenorb/Sites/OM/docroot/index.php" language="PHP" xdebug:language_version="7.1.5" protocol_version="1.0" appid="7097" idekey="xdebug-cli"><engine version="2.5.4"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright></init>

-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

Log closed at 2017-07-24 21:54:45

Based on the log above I think the breakpoints are not being set correctly (it's missing <- breakpoint_set commands?).

My config.cson:

"*":
  "php-debug":
    currentPanelHeight: "322px"
    currentPanelMode: "bottom"
"php-debug":
  PhpException:
    StrictStandards: false
  ServerPort: 9000

How can I debug this further?

ygao-pica9 commented 7 years ago

same problem here. inserting xdebug_break(); works but gives back an empty stack trace. do you have the same behavior? image

cchamplin commented 7 years ago

This is likely because you are missing your pathmaps, can you make sure they are properly configured?

kenorb commented 7 years ago

@cchamplin I'm debugging on local machine.

If debugging code that resides on a remote machine, use pathmaps to map a path on the remote machine to a path on the local machine.

So I'm skipping PathMaps configuration.

cchamplin commented 7 years ago

Is this still a problem with 0.2.5?

kenorb commented 7 years ago

Tried to test it, but currently I can't open the debug panel at all as per #240.

cchamplin commented 6 years ago

240 should theoretically be resolved, can you check in on this again?

cchamplin commented 6 years ago

No response, closing for staleness