PHP 7.0.4 does not recognize Xdebug debugger settings

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP 7.0.4 does not recognize Xdebug debugger settings

Postby Pneumokok » 10. April 2016 14:06

Hi! I try to enable Xdebug debugger with Intellij IntelliJ IDEA (Minerva) IU-145.844.1 and XAMPP 7.0.4 with PHP 7.0.4. I followed Enabling Xdebug integration with the PHP engine article from Jetbrain's blog (I can't use url tag here for some reason), but all the time I see:
Image
At this moment, I end up with this code:
Code: Select all
[xdebug]
zend_extension="F:\xampp\php\ext\php_xdebug-2.4.0-5.4-vc9-nts.dll"
xdebug.remote_enable=1
xdebug.remote_port="9000"

I use Windows 10 64-bit and php_xdebug-2.4.0-5.4-vc9-nts.dll is 32-bit, but the same situation occurred for 64-bit version. I've done it before, but for PHP 5.x and Windows 7 and something might change from that time. Xdebug wizard shows Could not find any useful information. message after analyzing my phpinfo() from Intellij. Here's my phpinfo() from Intellij:
Code: Select all

PHP version: 7.0.4
PHP CLI: F:\xampp\php\php.exe PHP CGI: F:\xampp\php\php-cgi.exe
Loaded Configuration File: F:\xampp\php\php.ini
Debugger extension: Not Found
Loaded extensions:  bcmath, bz2, calendar, Core, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, json, libxml, mbstring, mcrypt, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, Reflection, session, SimpleXML, SPL, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, zlib
Configuration options: 
allow_url_fopen
1
allow_url_include

arg_separator.input
&
arg_separator.output
&
assert.active
1
assert.bail
0
assert.callback

assert.exception
0
assert.quiet_eval
0
assert.warning
1
auto_append_file

auto_detect_line_endings
0
auto_globals_jit
1
auto_prepend_file

bcmath.scale
0
browscap
F:\xampp\php\extras\browscap.ini
curl.cainfo

date.default_latitude
31.7667
date.default_longitude
35.2333
date.sunrise_zenith
90.583333
date.sunset_zenith
90.583333
date.timezone
Europe/Berlin
default_charset
UTF-8
default_mimetype
text/html
default_socket_timeout
60
disable_classes

disable_functions

display_errors
1
display_startup_errors
1
doc_root

docref_ext

docref_root

enable_dl

enable_post_data_reading
1
error_append_string

error_log
F:\xampp\php\logs\php_error_log
error_prepend_string

error_reporting
22527
exif.decode_jis_intel
JIS
exif.decode_jis_motorola
JIS
exif.decode_unicode_intel
UCS-2LE
exif.decode_unicode_motorola
UCS-2BE
exif.encode_jis

exif.encode_unicode
ISO-8859-15
exit_on_timeout
0
expose_php
1
extension_dir
F:\xampp\php\ext
file_uploads
1
filter.default
unsafe_raw
filter.default_flags

from

gd.jpeg_ignore_warning
0
highlight.comment
#FF8000
highlight.default
#0000BB
highlight.html
#000000
highlight.keyword
#007700
highlight.string
#DD0000
html_errors
0
iconv.input_encoding

iconv.internal_encoding

iconv.output_encoding

ignore_repeated_errors

ignore_repeated_source

ignore_user_abort
0
implicit_flush
1
include_path
F:\xampp\php\PEAR
input_encoding

internal_encoding

log_errors
1
log_errors_max_len
1024
mail.add_x_header
1
mail.force_extra_parameters

mail.log

max_execution_time
0
max_file_uploads
20
max_input_nesting_level
64
max_input_time
-1
max_input_vars
1000
mbstring.detect_order

mbstring.encoding_translation
0
mbstring.func_overload
0
mbstring.http_input

mbstring.http_output

mbstring.http_output_conv_mimetypes
^(text/|application/xhtml\+xml)
mbstring.internal_encoding

mbstring.language
neutral
mbstring.strict_detection
0
mbstring.substitute_character

mcrypt.algorithms_dir

mcrypt.modes_dir

memory_limit
128M
mysqli.allow_local_infile
1
mysqli.allow_persistent
1
mysqli.default_host

mysqli.default_port
3306
mysqli.default_pw

mysqli.default_socket

mysqli.default_user

mysqli.max_links
-1
mysqli.max_persistent
-1
mysqli.reconnect

mysqli.rollback_on_cached_plink
0
mysqlnd.collect_memory_statistics
1
mysqlnd.collect_statistics
1
mysqlnd.debug

mysqlnd.fetch_data_copy
0
mysqlnd.log_mask
0
mysqlnd.mempool_default_size
16000
mysqlnd.net_cmd_buffer_size
4096
mysqlnd.net_read_buffer_size
32768
mysqlnd.net_read_timeout
31536000
mysqlnd.sha256_server_public_key

mysqlnd.trace_alloc

open_basedir

openssl.cafile

openssl.capath

output_buffering
0
output_encoding

output_handler

pcre.backtrack_limit
1000000
pcre.jit
1
pcre.recursion_limit
100000
phar.cache_list

phar.readonly
1
phar.require_hash
1
post_max_size
8M
precision
14
realpath_cache_size
16K
realpath_cache_ttl
120
register_argc_argv
1
report_memleaks
1
report_zend_debug
0
request_order
GP
sendmail_from

sendmail_path

serialize_precision
17
session.auto_start
0
session.cache_expire
180
session.cache_limiter
nocache
session.cookie_domain

session.cookie_httponly

session.cookie_lifetime
0
session.cookie_path
/
session.cookie_secure

session.entropy_file

session.entropy_length
0
session.gc_divisor
1000
session.gc_maxlifetime
1440
session.gc_probability
1
session.hash_bits_per_character
5
session.hash_function
0
session.lazy_write
1
session.name
PHPSESSID
session.referer_check

session.save_handler
files
session.save_path
F:\xampp\tmp
session.serialize_handler
php
session.upload_progress.cleanup
1
session.upload_progress.enabled
1
session.upload_progress.freq
1%
session.upload_progress.min_freq
1
session.upload_progress.name
PHP_SESSION_UPLOAD_PROGRESS
session.upload_progress.prefix
upload_progress_
session.use_cookies
1
session.use_only_cookies
1
session.use_strict_mode
0
session.use_trans_sid
0
short_open_tag

SMTP
localhost
smtp_port
25
sql.safe_mode

sys_temp_dir

track_errors

unserialize_callback_func

upload_max_filesize
2M
upload_tmp_dir
F:\xampp\tmp
url_rewriter.tags
a=href,area=href,frame=src,input=src,form=fakeentry
user_agent

user_dir

user_ini.cache_ttl
300
user_ini.filename
.user.ini
variables_order
GPCS
windows.show_crt_warning
0
xmlrpc_error_number
0
xmlrpc_errors
0
zend.assertions
1
zend.detect_unicode
1
zend.enable_gc
1
zend.multibyte
0
zend.script_encoding

zlib.output_compression

zlib.output_compression_level
-1
zlib.output_handler

Path to extension is correct, last time (if I remembered it correctly) I've done it I only have to copy dll to proper place - something change nowadays? Any help is appreciated - thank you in advance!

Greetings,
Pneumokok.
Pneumokok
 
Posts: 1
Joined: 10. April 2016 12:40
XAMPP version: 7.0.4
Operating System: Windows 10

Re: PHP 7.0.4 does not recognize Xdebug debugger settings

Postby keyso84 » 12. April 2016 18:50

The Apache included in the XAMPP for PHP version 7.0.4 is complied with VC14, so you should use the Xdebug version complied with VC14 as well. Try this one:

https://xdebug.org/files/php_xdebug-2.4.0-7.0-vc14.dll

Hope this helps
keyso84
 
Posts: 3
Joined: 04. December 2015 18:37
Operating System: Windows 7 x64

Re: PHP 7.0.4 does not recognize Xdebug debugger settings

Postby wehmeier.info » 25. August 2016 00:43

I have the same problem with Windows 10, PHP 7.0.8 and php_xdebug-2.4.1-7.0-vc14-nts.dll

Can you show me your php.ini?

I add this at the end of the file, because there was no Section [XDebug]

Code: Select all
[XDebug]
zend_extension = "D:/xampp/php/ext/php_xdebug.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"


This doesn't work
wehmeier.info
 
Posts: 3
Joined: 10. August 2016 22:57
XAMPP version: 7.0.8
Operating System: Windows 10

Re: PHP 7.0.4 does not recognize Xdebug debugger settings

Postby Altrea » 25. August 2016 08:20

Who told you to use the nts version of xdebug?

Use the xdebug wizard if you are not sure which version is the correct one for your environment:
https://xdebug.org/wizard.php
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: PHP 7.0.4 does not recognize Xdebug debugger settings

Postby wehmeier.info » 25. August 2016 22:20

I had used the wizard.

Xdebug installed: no
Server API:
Windows: no
Zend Server: no
PHP Version: 7.0.8
Zend API nr:
PHP API nr:
Debug Build: no
Thread Safe Build: no
Configuration File Path:
Configuration File: /php.ini
Extensions directory:
Could not find any useful information.


Pneumokok use the nts-version, too. And there a some (older) manuals and they say the same.
like this http://wiki.netbeans.org/HowToConfigureXDebug#Notes_on_Windows_Configuration


And the Manuals from XAMPP aren't actual. See: dashboard/docs/activate-use-xdebug.html or readme_de.txt
wehmeier.info
 
Posts: 3
Joined: 10. August 2016 22:57
XAMPP version: 7.0.8
Operating System: Windows 10

Re: PHP 7.0.4 does not recognize Xdebug debugger settings

Postby wehmeier.info » 25. August 2016 23:38

You're right. With the other version it works

Code: Select all
This program makes use of the Zend Scripting Language Engine:
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
wehmeier.info
 
Posts: 3
Joined: 10. August 2016 22:57
XAMPP version: 7.0.8
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 143 guests