R
R
Romi2021-11-19 21:15:40
PHP
Romi, 2021-11-19 21:15:40

How to debug a PHP application on a remote server (Ubuntu) when developing through VSC?

I am making a Laravel application on a remote server, because this is a Telegram bot and it needs https for the webhook.

Accordingly, even var_dump() is not always really done, because the application is initiated by the Telegram server - requests from it go to the webhook and responses - to it, respectively.

When problems arise, I make an output in the log, and through this I debug.

But what if there is something more convenient? Because constantly monitoring the contents of the log is such a thing, it is not always updated correctly, etc.

I edit scripts via VSC extension Remote - SSH (from Microsoft).

What do you advise?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question