Answer the question
In order to leave comments, you need to log in
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.
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).
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:
What a page looks like running with a debugger:
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question