R
R
Rickkk2016-07-12 19:47:19
1C-Bitrix
Rickkk, 2016-07-12 19:47:19

How to install xdebug in Bitrix web environment under Windows?

Good afternoon!
I am new to Bitrix, I have a Bitrix web environment of the "Corporate Portal" version installed on my windows development machine. I wanted to use not only var_dump for debugging, but also xdebug. I'm trying to set up xdebug in a web environment - it doesn't work. Check Bitrix php settings.
C:\Bitrix\apache2\zendserver\bin\php.exe -i


php version 5.3.2
thread safety: disabled
VC9.0
Architecture: x86

Download xdebug. I register in php.ini :

zend_extension="Apache2\ZendServer\lib\ZendExtensionManager.dll"
[xdebug]
zend_extension="C:\Bitrix\apache2\zendserver\lib\phpext\php_xdebug-2.2.0-5.3-vc9-nts.dll"
xdebug.profiler_enable = On
xdebug.profiler_enable_trigger = On
xdebug.remote_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_connect_back = On
xdebug.remote_port = 9000
xdebug.idekey = "sublime.xdebug"
xdebug.overload_var_dump = On
xdebug .remote_autostart = On
xdebug.default_enable = On
xdebug.auto_trace = On

When restarting the web environment, the error "The procedure entry point zend_unmangle_property_name was not found in the php5ts.dll DLL" occurs . The php -m command clearly shows that xdebug is not installed. There seems to be some kind of library conflict.
Tried different versions of the xdebug library (thread safety or non thread safety) - still the error occurs.
How can you still install xdebug on the windows version of the Bitrix web environment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
warhamster, 2016-09-26
@warhamster

It was also necessary, I had to tinker, it worked for me like that. For the Bitrix Windows environment (BitrixEnv version 2.1 Savanna edition) we write in php.ini like this:

[xdebug]
zend_extension="Apache2\ZendServer\lib\phpext\php_xdebug-2.1.2-5.3-vc9-nts.dll"
... (and further xdebug parameters as needed)
We first put the corresponding version of xdebug (php_xdebug-2.1.2-5.3-vc9-nts.dll) into the phpext folder and, most importantly, in php.ini, the [xdebug] section must be placed before [zend], otherwise Apache will crash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question