C
C
cancera2016-06-22 11:29:16
PHP
cancera, 2016-06-22 11:29:16

How to set a breakpoint in a php function called from an ajax request?

- we have: Ubuntu, XAMPP + Xdebug, phpStorm.
- in the course of the script, an ajax request is made to the php function,
- can I set a breakpoint in this function and how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Slava Kryvel, 2016-06-22
@kryvel

Of course you can, calling a function via ajax is no different from a regular call
Put a breakpoint in the code, enable debugging in the browser, run ajax and phpstorm intercepts the call

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question