C
C
celss2021-05-18 00:20:26
PHP
celss, 2021-05-18 00:20:26

How to display only an error in xdebug, without decoration and without Call Stack?

There is a code:

<?php
echo $my_var;


Result:
60a2dc54de609568273431.png

Please tell me how to display only one error:
Notice: Undefined variable: my_var in D:\Projects\XAMPPv7.4\htdocs\ali\index.php on line 2
without any decoration (like without xdebug)? do not disable xdebug.
Tried all possible options - without success. Everything on the internet doesn't work.

In php.ini now at least:
zend_extension = xdebug
xdebug.remote_enable = 1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
celss, 2021-05-19
@celss

Figured it out myself : Change
/add in php.ini:
html_errors = Off
xdebug.default_enable = 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question