V
V
Vladimir2018-08-27 16:51:55
PHP
Vladimir, 2018-08-27 16:51:55

Strange behavior of xdebug, what to do?

There was a problem running xdebug.
The problem is this:
When debugging, everything works fine until the end of the router, at the end some strange things happen.
xsEPJ.png
It reaches here without unforeseen errors, and then it’s not clear what happens.
Then bootstrap.php is restarted and $_SERVER['REQUEST_URI'] contains 'favicon.ico', or '404', or 'js', I still don't understand what it depends on.
As a result, the whole application goes around the second circle and an error pops up that there is no such controller (eg Controller_favicon.ico).
6xM7R.png
The most interesting thing is that without a debugger everything goes as it should.
Link to code repository:
https://bitbucket.org/rafnsvartr_/survey-builder/src
Only one table is used so far - connection data in config/config.php
database -
-- Structure dump for survey_builder.users table
CREATE TABLE IF NOT EXISTS `users` (
​​`id` int(6) NOT NULL AUTO_INCREMENT,
`login` varchar( 32) NOT NULL,
`password` varchar(100) NOT NULL,
`salt` varchar(8) NOT NULL,
`email` varchar(100) NOT NULL,
`registerDate` timestamp NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
The strangest thing is that yesterday everything was fine, and today after the launch, such a problem began.
What a page looks like running without a debugger:
9fXuS.png
What a page looks like running with a debugger:
3jGM2.png
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
ThunderCat, 2018-08-27
@ThunderCat

Then bootstrap.php is restarted and $_SERVER['REQUEST_URI'] contains 'favicon.ico', or '404', or 'js', I still don't understand what it depends on.

everything is ok with the debugger, most likely you have xtaxess configured to transfer non-existent files to a similar controller and action. Check the browser console which requests to resources returned the wrong type and check that they are in the place where their url is registered (for example js/some.js instead of /js/some.js and the favicon is in the right place). That is, all missing resources can be redirected to the 404 page, for example, hence another launch of the entire engine.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question