CodeLobster IDE
http://codelobster.com/forum/

Activating Debugger on Windows 10 - PHP 7.0.2
http://codelobster.com/forum/viewtopic.php?f=3&t=24284
Page 2 of 3

Author:  anva [ Mon Jan 21, 2019 11:19 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hello, thank you for your detailed answer.

> Do You work with some project?
Yes, a Yii2 basic project.

Does Codelobster IDE crash just after file opening?
Yes

> Does Codelobster IDE crash if You open this one single file (without opening your project)?
I tried now to open Codelobster IDE again, but it doesn't crash any more, so I cant reproduce the bug at present and cannot answer this question.

> Which plug-ins are turned on?
No plug in turned o.

> Could You, please, send us the screenshot of the crash.
No screenshot, it closes without error message

Author:  anva [ Mon Jan 21, 2019 11:44 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

I followed your instructions for the debugger, but when checking the xdebug settings, I got a message box by Codelobster that I attach here as an image file.
I tried also to add following lines in the php.ini file, but it gives the same message:

xdebug.remote_host = "http://localhost"
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.remote_host or xdebug.remote_connect_back On
xdebug.remote_connect_back = off
xdebug.remote_log="xdebug.log"

I obviously restarted the apache webserver

Attachments:
phpinfo.zip [23.94 KiB]
Downloaded 2919 times
zdebug.png
zdebug.png [ 10.81 KiB | Viewed 62010 times ]

Author:  Admin [ Mon Jan 21, 2019 3:45 pm ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hi.

You havn't xDebugger installed still.

Please,

1. Download it here:
https://xdebug.org/files/php_xdebug-2.7 ... 15-nts.dll
and copy to C:\xampp\php\ext\

2. Open your php.ini file:

- comment or remove whole [CLDbg] block
- be sure, the the following section exists (and it is not commented):

Code:
[XDebug]
zend_extension = "C:
mpp\phpxt\php_xdebug-2.7.0beta1-7.2-vc15-nts.dll"
xdebug.remote_enable=on
xdebug.default_enable=on
xdebug.remote_autostart=1
xdebug.max_nesting_level=256


3. Restart apache server from XAMPP panel.

Thanks,
Codelobster Team.

Author:  anva [ Mon Jan 21, 2019 4:27 pm ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hello, I already did *exactly* what you said:

1) I downloaded the file and saved it into the C:\xampp\php\ext\ folder
2) I inserted the lines into the php.ini file
3) I removed the [CLDbg] block
4) I restarted the apache server from the xampp panel

but it still doesn't work!

Author:  anva [ Tue Jan 22, 2019 9:00 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Could it perhaps depend on other settings? For example on the project properties? Am I doing somethin wrong by starting the debugger? I set a breakpoint on the main index.php file and press F5. I tried also with F8 and Shift-F8. I really don't know what to do.

Author:  Admin [ Tue Jan 22, 2019 9:25 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hi.

You sent us your phpinfo(),
but there isn't the following line there:
Code:
zend_extension = "C:
mpp\phpxt\php_xdebug-2.7.0beta1-7.2-vc15-nts.dll"


Also your can try the version 2.6.1 of xDebug:
https://xdebug.org/files/php_xdebug-2.6 ... 15-nts.dll

And We can look at your PC directly
if You provide us with TeamViever access for it.

Regards,
Codelobster Team.

Author:  anva [ Tue Jan 22, 2019 9:59 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hello, I followed the instructions on the site "https://xdebug.org/wizard.php", where I've been told to download the "php_xdebug-2.6.1-7.2-vc15.dll" file, and now finally the Codelobster IDE finds the xdebugger installed! (I think this is the thread safe dll, although I don't know when one or the other is to use). But now, when I run the debugger, I get the message "Incorrect port number!", as in the attached image.

Attachments:
Error.png
Error.png [ 2.53 KiB | Viewed 61996 times ]

Author:  Admin [ Tue Jan 22, 2019 10:36 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Please, be sure that your firewall is turned off:
https://support.microsoft.com/en-us/hel ... -on-or-off

Author:  anva [ Tue Jan 22, 2019 11:17 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Admin Wrote:
Please, be sure that your firewall is turned off:
https://support.microsoft.com/en-us/hel ... -on-or-off

Just tried but still incorrect porte number.

Author:  Admin [ Tue Jan 22, 2019 12:36 pm ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hi.

Could You, please, send us your [XDebug] section from php.ini
and Debugger Settings in CodeLobster IDE.

Thanks,
Codelobster Team.

Author:  anva [ Tue Jan 22, 2019 1:15 pm ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Here they are, tahnk you.

Attachments:
debugger.png
debugger.png [ 5.95 KiB | Viewed 61989 times ]
xdebug.txt [128 Bytes]
Downloaded 2942 times

Author:  anva [ Tue Jan 22, 2019 1:20 pm ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

I just noticed that the "incorrect port number" message shows only the second time I start the debugger, while the first time it doesn't start at all, or perhaps it starts, but doesn't stop at any breakpoint. I tried also with a single php file. When I press F5, the html page correctly shows in the browse, without stopping at any breakpoint in the source code.

Author:  Admin [ Tue Jan 22, 2019 4:29 pm ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hi.

You sent us some incorrect lines:
Code:
[Xdebug]
hpxt\php_xdebug-2.6.1-7.2-vc15.dll"
xdebug.remote_enable=on
xdebug.default_enable=on
xdebug.max_nesting_level=256


It should be (if You use version 2.6.1):

Code:
[Xdebug]
zend_extension = "C:
mpp\phpxt\php_xdebug-2.6.1-7.2-vc15.dll"
xdebug.remote_enable=on
xdebug.default_enable=on
xdebug.remote_autostart=1
xdebug.max_nesting_level=256



Regards,
Codelobster Team.

Author:  anva [ Tue Jan 22, 2019 5:29 pm ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

It was a copy/paste error, these are the lines in my php.ini file:

[Xdebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.6.1-7.2-vc15.dll"
xdebug.remote_enable=on
xdebug.default_enable=on
xdebug.max_nesting_level=256

Author:  Admin [ Wed Jan 23, 2019 7:59 am ]
Post subject:  Re: Activating Debugger on Windows 10 - PHP 7.0.2

Hi.

And We can try to look at your PC directly
if You provide us with TeamViever access for it.

Thanks,
codelobster Team.

Page 2 of 3 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/