G
G
Greg Popov2016-05-22 23:39:31
Yii
Greg Popov, 2016-05-22 23:39:31

How to set up Xdebug for Yii2?

Hello.
Xdebug installed, everything is fine, but I don’t understand how to make it friends with yii2 (advanced).
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Makarov, 2016-07-01
@SamDark

Setting up XDebug under Yii is no different from setting up XDebug under PHP. Not a single feature.

P
petr_yalta, 2018-03-26
@petr_yalta

As a variant of the "crutch" I decided as follows:
1. In Apche, I do not specify /project/frontend as the root, but /project
2. and create a file /preoject/index.php for the redirect (you can do the same through htaccess)

<?php
header('location: /frontend');
?>

After that XDEBUG started working

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question