View Issue Details

IDProjectCategoryView StatusLast Update
0001882XdebugStep Debuggingpublic2020-12-12 05:12
Reporterelemich Assigned To 
PrioritynoneSeveritymajorReproducibilityalways
Status resolvedResolutionno change required 
OSwindowsOS Version10 
Product Version3.0.0beta1 
Summary0001882: not working
Description

hi,

  • windows10 enterprise
    notepad++ 7.9.1 or dbgpClient.exe
    xampp suite with php 7.4

  • zend_extension="c:\xampp\php\ext\php_xdebug-3.0.0beta1-7.4-vc15-x86_64.dll"
    xdebug.remote_enable=1
    xdebug.remote_port=9000

  • so, using chrome or firefox with xdebug extensions, opening localhost:9000 (without 9000 doesn't works) on index.php containing some code like echo or xdebug_break():

1) notepad++ flashing, dbgpPlugin's raw dbg windows reports "accept 127.0.0.1" but nothing more happens, the debugger combobox stays on "disconnected..."
2) dbgpClient.exe: reports "connected from [::1]:55768 and nothing more happens

a router port 9000 is opened on tcp/udp protocols, all firewalls are disabled, avast premium is disabled
netstat -aonb | find "9000" correctly reports notepad++ or dbgpClient.exe LISTENING and ESTABLISHED

any suggest?

Steps To Reproduce

in the description

Additional Information

in the description

Tagsnotepad++ chrome
Operating Systemwindows 10 enterprise
PHP Version7.4.0-7.4.4

Activities

elemich

2020-11-07 15:15

reporter   ~0005505

sorry but with the php_xdebug.dll shipped with xampp it works....my fault, is not the xdebug last version...

derick

2020-11-11 10:10

administrator   ~0005512

Please read Xdebug 3's upgrade guide: https://3.xdebug.org/docs/upgrade_guide

These settings don't exist any more:


xdebug.remote_enable=1
xdebug.remote_port=9000

JMROJAS

2020-12-11 07:22

reporter   ~0005578

I confirm changing version to older one it works.

In php.ini:

[xdebug]
zend_extension="php_xdebug-2.9.8-7.4-vc15-nts-x86_64.dll"; <== Step debugger works with little or no configuration
;zend_extension="php_xdebug-3.0.1-7.4-vc15-nts-x86_64.dll" <== it don't

Mote: Of course I load only one extension at a time. I comment the other by ';' .
Uncommenting older one and enabling 3.01 breaks it.

Using VS code, no changes on that side.

Regards,

Jorge

Spend hours trying to figure it out.

derick

2020-12-11 10:52

administrator   ~0005581

Please read Xdebug 3's upgrade guide: https://xdebug.org/docs/upgrade_guide

These settings don't exist any more:


xdebug.remote_enable=1
xdebug.remote_port=9000

JMROJAS

2020-12-11 13:44

reporter   ~0005585

This worked for me (Windows 10/IIS/VS Code):

PHP.INI:
[xdebug3]
zend_extension="php_xdebug-3.0.1-7.4-vc15-nts-x86_64.dll"
xdebug.cli_color = 1
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.client_port = "9000"
xdebug.start_upon_error=yes

launch.json(vscode):
...
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"xdebugSettings": {
"max_children": 256
},
"log": false,
"runtimeExecutable": "C:\Program Files\PHP\v7.4\php.exe"
},
...

Maged Nabil

2020-12-12 05:12

reporter   ~0005587

Hi,
Could you please clarify which ver of notepad++ and dbgpPlugin because my notepad++ ver 7.9.1 doesn't work with DBGpPlugin_0_13b_dll when following the documentation https://npp-user-manual.org/docs/plugins/

i.e. If you put the plugin file under the plugin directory of notepad++ and restart you don't see the name of the plugin in the menu

Thanks for your advice