{"id":412811,"date":"2024-06-29T22:45:51","date_gmt":"2024-06-29T22:45:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=412811"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=412811","title":{"rendered":"<span>CodeIgniter 4: \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a PHPUnit. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Xdebug \u0432 XAMPP (Windows 32-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u0430\u044f (x86))<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/hj\/dw\/8c\/hjdw8cokytyglh34o_q7vrt57uq.png\" title=\"Copyright Xdebug Logo (xdebug.org), Copyright XAMPP Logo (www.apachefriends.org)\" data-src=\"https:\/\/habrastorage.org\/webt\/hj\/dw\/8c\/hjdw8cokytyglh34o_q7vrt57uq.png\"\/><\/p>\n<h3>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e \u0437\u0430 \u043e\u0442\u043a\u043b\u0438\u043a\u0438<\/h3>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u0440\u0430\u0437\u043d\u043e\u043f\u043b\u0430\u043d\u043e\u0432\u044b\u0435 \u043e\u0442\u043a\u043b\u0438\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0438 \u00ab\u043a\u0430\u0440\u043c\u044b\u00bb \u043d\u0430 \u0441\u0432\u043e\u044e \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u00ab<a href=\"https:\/\/habr.com\/ru\/post\/569474\/\">\u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0430 PHP: CodeIgniter 4. \u00ab\u041b\u0451\u0433\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440\u00bb \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Database Migrations (\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439) \u0438 Seeding (\u043f\u043e\u0441\u0435\u0432)<\/a>\u00bb, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0435\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0438 \u0442\u043e\u0447\u043a\u0443 \u0437\u0440\u0435\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u0438 \u0432 \u0441\u0432\u043e\u0438\u0445 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043d\u0430\u0448\u043b\u0438 \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0430 \u0432 \u0435\u0433\u043e \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f\u043c\u0438, \u0447\u0442\u043e CodeIgniter 4 \u2014 \u044d\u0442\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0447\u0442\u0451\u0442 \u0441\u0442\u0430\u0442\u044c\u044e \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442, \u0430 \u0442\u043e \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u043a \u0441\u0435\u0431\u0435 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440, \u043a\u043e\u0434 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e <a href=\"https:\/\/github.com\/numbrCode\/codeigniter4-build-your-first-application\" rel=\"nofollow noopener noreferrer\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043d\u0430 GitHub&#8217;\u0435<\/a>, \u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 CodeIgniter 4 <a href=\"https:\/\/codeigniter.com\/user_guide\/tutorial\/index.html#build-your-first-application\" rel=\"nofollow noopener noreferrer\">\u00abBuild Your First Application\u00bb<\/a> (\u00ab\u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0441\u0432\u043e\u0435 \u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u00bb). \u0411\u043b\u0430\u0433\u043e, \u0447\u0442\u043e \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430\u0441\u044b\u0449\u0435\u043d\u0430 \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u043c\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044f \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430 \u0431\u0440\u0438\u0442\u0432\u044b \u041e\u043a\u043a\u0430\u043c\u044b: \u00ab\u041d\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043c\u043d\u043e\u0436\u0438\u0442\u044c \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438\u00bb \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u044f\u044f \u0435\u0433\u043e \u043e\u0434\u043d\u0438\u043c \u0438\u0437 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u043e\u0432 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043d\u043e\u0433\u043e (\u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e) \u043c\u0438\u0440\u043e\u0432\u043e\u0437\u0437\u0440\u0435\u043d\u0438\u044f \u00ab\u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438\u00bb, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"https:\/\/xdebug.org\/\" rel=\"nofollow noopener noreferrer\">Xdebug<\/a> \u0432 <a href=\"https:\/\/www.apachefriends.org\/ru\/index.html\" rel=\"nofollow noopener noreferrer\">XAMPP<\/a> \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0432 Windows x86 (32 \u0440\u0430\u0437\u0440\u044f\u0434\u0430).<\/p>\n<p>  <\/p>\n<h3>\u0417\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d Xdebug?<\/h3>\n<p>  <\/p>\n<ul>\n<li>Xdebug \u2014 \u044d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f PHP, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442, \u043f\u043e\u043c\u0438\u043c\u043e \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u043e\u0434\u0430, \u0442.\u0435 \u0441 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043a\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043c\u043e\u0434\u0443\u043b\u044c\u043d\u044b\u0445 \u0442\u0435\u0441\u0442\u043e\u0432 PHPUnit.<\/li>\n<li>\u0412 \u0444\u0430\u0439\u043b\u0435 <a href=\"https:\/\/github.com\/numbrCode\/codeigniter4-build-your-first-application\/blob\/main\/tests\/README.md\" rel=\"nofollow noopener noreferrer\">codeigniter4-build-your-first-application\/tests\/README.md<\/a> \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00abRequirements\u00bb (\u00ab\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u00bb) \u043f\u0440\u044f\u043c\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f: \u00abYou also need to install XDebug in order for code coverage to be calculated successfully ().\u00bb (\u00ab\u0412\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c XDebug \u0434\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0440\u0430\u0441\u0447\u0451\u0442\u0430 \u043f\u043e\u043a\u0440\u044b\u0442\u0438\u044f \u043a\u043e\u0434\u0430.\u00bb) <\/li>\n<li>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 <a href=\"https:\/\/habr.com\/ru\/post\/569474\/\">\u00ab\u041b\u0451\u0433\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u00bb <\/a> \u2014 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0441\u0442\u0430\u0442\u044c\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c \u0434\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u043d\u0430 \u0431\u0430\u0437\u0435 <a href=\"https:\/\/github.com\/codeigniter4\/appstarter\" rel=\"nofollow noopener noreferrer\">\u00abCodeIgniter 4 app starter\u00bb<\/a>. (\u00abCodeIgniter 4 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u00bb), \u0442\u043e \u0442\u0430\u043c \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b <a href=\"https:\/\/github.com\/codeigniter4\/appstarter\/blob\/master\/tests\/README.md\" rel=\"nofollow noopener noreferrer\">appstarter\/tests\/README.md<\/a> \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u043e Xdebug.<\/li>\n<li>\u0425\u043e\u0442\u044f \u0432 \u0441\u0430\u043c\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Codeigniter4 Xdebug \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442\u0441\u044f <a href=\"https:\/\/codeigniter.com\/user_guide\/search.html?q=XDebug&amp;check_keywords=yes&amp;area=default\" rel=\"nofollow noopener noreferrer\">\u043e\u0434\u0438\u043d \u0440\u0430\u0437<\/a>, \u0438 \u0442\u043e \u0432\u0441\u043a\u043e\u043b\u044c\u0437\u044c, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 <a href=\"https:\/\/codeigniter.com\/user_guide\/testing\/debugging.html#replace-var-dump\" rel=\"nofollow noopener noreferrer\">\u00abReplace var_dump\u00bb<\/a>, \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0443\u043c\u043d\u044b\u043c \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043d\u0430 GitHub&#8217;\u0435. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 Xdebug \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 \u0441\u0432\u043e\u0439 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432 XAMPP.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>\u041a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c Xdebug \u0432 XAMPP (Windows 32-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u0430\u044f (x86))?<\/h3>\n<p>  <\/p>\n<p>\u0411\u043e\u043b\u044c\u0448\u0438\u043c \u043f\u043e\u0434\u0441\u043f\u043e\u0440\u044c\u0435\u043c \u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0430\u0432\u0442\u043e\u0440\u0443 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043e\u043a\u0430\u0437\u0430\u043b\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u0442\u0430\u0442\u044c\u044f\u043c\u0438 \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/gist.github.com\/odan\/1abe76d373a9cbb15bed\" rel=\"nofollow noopener noreferrer\">\u00abInstalling Xdebug for XAMPP with PHP 7.x\u00bb<\/a>, odan, 2021. (\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0432\u0435\u0437\u0434\u0443 \u043d\u0430 GitHube. \u0411\u044b\u043b <a href=\"https:\/\/gist.github.com\/odan\/1abe76d373a9cbb15bed\/stargazers?page=25\" rel=\"nofollow noopener noreferrer\">1225<\/a>&#8216;\u044b\u043c.)<\/li>\n<li><a href=\"https:\/\/medium.com\/d6-digital\/installing-xdebug-for-xampp-with-php-in-windows-d2b750861118\" rel=\"nofollow noopener noreferrer\">\u00abInstalling XDEBUG for XAMPP with PHP in Windows\u00bb<\/a>, Ahmed Thaajwer, 2019. <\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0412 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0435\u0441\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e \u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e.<\/p>\n<p>  <\/p>\n<h3>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438<\/h3>\n<p>  <\/p>\n<p>\u0411\u0443\u0434\u0435\u043c \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c\u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <a href=\"https:\/\/xdebug.org\/\" rel=\"nofollow noopener noreferrer\">Xdebug<\/a><\/li>\n<li>\u0432 <a href=\"https:\/\/www.apachefriends.org\/ru\/index.html\" rel=\"nofollow noopener noreferrer\">XAMPP<\/a> \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0441 Windows x86 (32 \u0440\u0430\u0437\u0440\u044f\u0434\u0430)<\/li>\n<li>\u0441 PHP 7.* .<\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0444\u0430\u0439\u043b\n<pre><code class=\"plaintext\">vc_redist.x86.exe<\/code><\/pre>\n<p> \u0441 <a href=\"https:\/\/support.microsoft.com\/en-us\/topic\/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0\" rel=\"nofollow noopener noreferrer\">\u00abThe latest supported Visual C++ downloads\u00bb<\/a>.<\/li>\n<li>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/gitforwindows.org\/\" rel=\"nofollow noopener noreferrer\">Git Bash<\/a>.<\/li>\n<li>\u0422\u0435\u043a\u0441\u0442 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Xdebug \u0432 XAMPP<\/h3>\n<p>  <\/p>\n<h4><a name=\"step1\"><\/a>\u0428\u0430\u0433 1. \u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 Xdebug<\/h4>\n<p>  <\/p>\n<ul>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c (\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c) XAMPP.<\/li>\n<li>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c Git Bush \u0432 \u043b\u044e\u0431\u043e\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 (\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u043f\u0430\u043f\u043a\u0435).<\/li>\n<li>\u0412 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 Git Bush \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0441 \u043e\u043f\u0446\u0438\u0435\u0439\n<pre><code class=\"plaintext\">php -v<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 \u0447\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 :<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/-7\/fg\/2e\/-7fg2eq2by4uupeps3vkhblq79c.png\" data-src=\"https:\/\/habrastorage.org\/webt\/-7\/fg\/2e\/-7fg2eq2by4uupeps3vkhblq79c.png\"\/><\/p>\n<pre><code class=\"plaintext\">with Xdebug v2.9.7<\/code><\/pre>\n<p>, \u0442\u043e  <\/p>\n<p>\u0432\u0441\u0451 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0438\u043b\u0438 \u0438 \u0442\u0430\u043a \u0432\u0441\u0451 \u0431\u044b\u043b\u043e.<\/p>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u0438 \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u043c\u0438 \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435 :<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/tw\/x1\/qf\/twx1qfgbwalv9nwyk5onj0lt-us.png\" data-src=\"https:\/\/habrastorage.org\/webt\/tw\/x1\/qf\/twx1qfgbwalv9nwyk5onj0lt-us.png\"\/><br \/>  , \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0448\u0430\u0433\u0443 2.<\/p>\n<h4>\u0428\u0430\u0433 2. \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 Xdebug<\/h4>\n<p>  <\/p>\n<p>\u041d\u0430 \u0441\u0430\u0439\u0442\u0435 Xdebug \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 <a href=\"https:\/\/xdebug.org\/download\" rel=\"nofollow noopener noreferrer\">Downloads<\/a> \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u00abLatest Release\u00bb \u0438 \u0441\u0435\u043a\u0446\u0438\u0438 \u00abWindows binaries\u00bb \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u043b\u044f \u0432\u0430\u0441 \u0441\u0441\u044b\u043b\u043a\u0443 \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 :<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/k1\/vl\/98\/k1vl98qnefvznbikrjnygdv177c.png\" data-src=\"https:\/\/habrastorage.org\/webt\/k1\/vl\/98\/k1vl98qnefvznbikrjnygdv177c.png\"\/>  <\/p>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430 Windows binaries:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">PHP 7.3 VC15 TS (32 bit)<\/code><\/pre>\n<p>.<\/p>\n<h4>\u0428\u0430\u0433 3. \u041f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b dll \u0432: C:\\xampp\\php\\ext\\<\/h4>\n<p>  <\/p>\n<p>\u0421\u043a\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e :<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">php_xdebug-2.9.7-7.3-vc15.dll<\/code><\/pre>\n<p>  <\/p>\n<p>\u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u043c (\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c) \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <\/p>\n<pre><code class=\"plaintext\">pathBeforeYourXAMPP\\xampp\\php\\ext\\<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/ss\/c6\/5m\/ssc65mzhicpanuxj-febinlixea.png\" data-src=\"https:\/\/habrastorage.org\/webt\/ss\/c6\/5m\/ssc65mzhicpanuxj-febinlixea.png\"\/><\/p>\n<h4>\u0428\u0430\u0433 4. \u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b php.ini<\/h4>\n<p>  <\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u044e\u0431\u0438\u043c\u043e\u043c \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0435 \u0444\u0430\u0439\u043b <\/p>\n<pre><code class=\"plaintext\">pathBeforeYourXAMPP\\xampp\\php\\php.ini<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/3v\/ww\/wp\/3vwwwpm9puhcj6pegry9ormmdqu.png\" data-src=\"https:\/\/habrastorage.org\/webt\/3v\/ww\/wp\/3vwwwpm9puhcj6pegry9ormmdqu.png\"\/><\/p>\n<ul>\n<li>\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u0443\u0444\u0435\u0440\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u044b\u0432\u043e\u0434\u0430:<br \/> \n<pre><code class=\"plaintext\">output_buffering = Off<\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/kw\/cd\/yz\/kwcdyzra_e-b061uhk0gur8-rz0.png\" data-src=\"https:\/\/habrastorage.org\/webt\/kw\/cd\/yz\/kwcdyzra_e-b061uhk0gur8-rz0.png\"\/>  <\/li>\n<li>\u041f\u0440\u043e\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c \u0432\u043d\u0438\u0437 \u0434\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u00abXDebug\u00bb (\u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0435\u0433\u043e) \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \/ \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:\n<pre><code class=\"plaintext\">[XDebug] zend_extension=\"c:\\xampp\\php\\ext\\php_xdebug-2.9.7-7.3-vc15.dll\" xdebug.remote_autostart=1 xdebug.profiler_append=0 xdebug.profiler_enable=0 xdebug.profiler_enable_trigger=0 xdebug.profiler_output_dir=\"c:\\xampp\\tmp\" ;xdebug.profiler_output_name=\"cachegrind.out.%t-%s\" xdebug.remote_enable=1 xdebug.remote_handler=\"dbgp\" xdebug.remote_host=\"127.0.0.1\" xdebug.remote_log=\"c:\\xampp\\tmp\\xdebug.txt\" xdebug.remote_port=9000 xdebug.trace_output_dir=\"c:\\xampp\\tmp\" ;36000=10h xdebug.remote_cookie_expire_time=36000<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c, \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e :<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/7i\/yd\/ph\/7iydphvnpqcelisb1-nv5hfltgw.png\" data-src=\"https:\/\/habrastorage.org\/webt\/7i\/yd\/ph\/7iydphvnpqcelisb1-nv5hfltgw.png\"\/>  <\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u0428\u0430\u0433 5. \u041f\u0440\u0435\u0434\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439<\/h4>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a <a href=\"#step1\">\u00ab\u0428\u0430\u0433\u0443 1\u00bb<\/a>.<\/li>\n<\/ul>\n<p>  <\/p>\n<h4>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h4>\n<p>  <\/p>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0432\u0430\u0448 \u0444\u0430\u0439\u043b<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">php.ini<\/code><\/pre>\n<p>.  <\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0447\u0442\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 zend_extension<\/p>\n<pre><code class=\"plaintext\">zend_extension=...<\/code><\/pre>\n<p>  , \u0442\u043e\u0433\u0434\u0430 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0438\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u00ab;\u00bb<\/p>\n<pre><code class=\"plaintext\">;zend_extension=...<\/code><\/pre>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u043e\u0433\u043e-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/572402\/\"> https:\/\/habr.com\/ru\/articles\/572402\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/hj\/dw\/8c\/hjdw8cokytyglh34o_q7vrt57uq.png\" title=\"Copyright Xdebug Logo (xdebug.org), Copyright XAMPP Logo (www.apachefriends.org)\" data-src=\"https:\/\/habrastorage.org\/webt\/hj\/dw\/8c\/hjdw8cokytyglh34o_q7vrt57uq.png\"\/><\/p>\n<h3>\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e \u0437\u0430 \u043e\u0442\u043a\u043b\u0438\u043a\u0438<\/h3>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432 \u0440\u0430\u0437\u043d\u043e\u043f\u043b\u0430\u043d\u043e\u0432\u044b\u0435 \u043e\u0442\u043a\u043b\u0438\u043a\u0438 \u0432 \u0432\u0438\u0434\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0438 \u00ab\u043a\u0430\u0440\u043c\u044b\u00bb \u043d\u0430 \u0441\u0432\u043e\u044e \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u00ab<a href=\"https:\/\/habr.com\/ru\/post\/569474\/\">\u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043d\u0430 PHP: CodeIgniter 4. \u00ab\u041b\u0451\u0433\u043a\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440\u00bb \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Database Migrations (\u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0439) \u0438 Seeding (\u043f\u043e\u0441\u0435\u0432)<\/a>\u00bb, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0442\u0435\u0445 \u0447\u043b\u0435\u043d\u043e\u0432 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u043b\u0438 \u0442\u043e\u0447\u043a\u0443 \u0437\u0440\u0435\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u0438 \u0432 \u0441\u0432\u043e\u0438\u0445 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043d\u0430\u0448\u043b\u0438 \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u043b\u043e\u0432\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u0440\u0430 \u0432 \u0435\u0433\u043e \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u0438\u0438 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f\u043c\u0438, \u0447\u0442\u043e CodeIgniter 4 \u2014 \u044d\u0442\u043e \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-412811","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/412811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=412811"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/412811\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=412811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=412811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=412811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}