A
A
alexandrnevajno12017-11-27 04:42:02
PHP
alexandrnevajno1, 2017-11-27 04:42:02

Failed to load resource: the server responded with a status of 500 (Internal Server Error) - how to find out - on which line is the error (PHP)?

Hello! The server returns an error:
"Failed to load resource: the server responded with a status of 500 (Internal Server Error)".
How can I find out which line it happened on? I have netbeans. I create a breakpoint at the beginning of the function and then just hit F7 (Enter). But this is very long, especially if the function is large.
Can you please tell me how to find out which line the error is on?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Gerasimov, 2017-11-27
@Omashu

error_reporting php.net/manual/ru/function.error-reporting.php
Or am I missing something?

A
Artem, 2017-11-27
@proudmore

in the php error logs there should be a chain of calls that caused the exception. You can also do at the application entry point ini_set('display_errors', true);
So you will see the error in the body of the response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question