{"id":344437,"date":"2023-01-25T09:00:37","date_gmt":"2023-01-25T09:00:37","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=344437"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=344437","title":{"rendered":"<span>PHPStorm + XDebug + Docker<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<details class=\"spoiler\">\n<summary>\u0422\u0430\u043a\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0443\u0436\u0435 \u0442\u044b\u0441\u044f\u0447\u0430, \u0437\u0430\u0447\u0435\u043c?<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0438 \u043e\u0434\u043d\u0430. \u042f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0448\u0451\u043b \u043e\u043a\u043e\u043b\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0438\u0431\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u044b\u043b\u0438 \u043d\u0435\u043f\u043e\u043b\u043d\u044b\u0435, \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435<\/p>\n<\/div>\n<\/details>\n<p>\u042f \u043e\u0436\u0438\u0434\u0430\u044e, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0434\u043e\u043a\u0435\u0440\u043e\u043c.<\/p>\n<p>\u0428\u0430\u0433\u043e\u0432, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435.<\/p>\n<details class=\"spoiler\">\n<summary>1. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e PHPStorm \u0441 Docker<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > Build, Execution, Deployment > Docker<\/code> \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <code>Docker<\/code>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9cd\/13b\/4d6\/9cd13b4d62203956ee0ef960bb13601c.png\" width=\"1316\" height=\"762\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9cd\/13b\/4d6\/9cd13b4d62203956ee0ef960bb13601c.png\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>2. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 (\u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435) \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > PHP > CLI Interpreter > 3 \u0442\u043e\u0447\u043a\u0438 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 \u043d\u0435\u0433\u043e<\/code> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7d7\/e35\/566\/7d7e35566e49e36ef58a78420d8dce57.jpg\" alt=\"\u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0445\u043f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f 5.6, \u043d\u043e \u044d\u0442\u043e \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442\" title=\"\u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0445\u043f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f 5.6, \u043d\u043e \u044d\u0442\u043e \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442\" width=\"1606\" height=\"1398\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7d7\/e35\/566\/7d7e35566e49e36ef58a78420d8dce57.jpg\" data-blurred=\"true\"\/><figcaption>\u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0445\u043f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f 5.6, \u043d\u043e \u044d\u0442\u043e \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442<\/figcaption><\/figure>\n<p><code>Name<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c<\/p>\n<p><code>Server<\/code> \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0448\u0430\u0433\u043e\u043c \u0440\u0430\u043d\u0435\u0435<\/p>\n<p><code>Configuration files<\/code>: \u043f\u0443\u0442\u044c \u0434\u043e <code>docker-compose.yml<\/code><\/p>\n<p><code>Service<\/code>: \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 <code>PHP<\/code><\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441, \u043d\u043e \u0432 \u0433\u0440\u0430\u0444\u0435 <code>Lifecycle<\/code> \u043b\u0443\u0447\u0448\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <code>connect to existing container<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0432 \u0433\u0440\u0430\u0444\u0435 <code>CLI Interpreter<\/code> \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4c7\/955\/2a0\/4c79552a0a9c29ca3c1047f04fce5bf5.jpg\" width=\"1310\" height=\"408\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4c7\/955\/2a0\/4c79552a0a9c29ca3c1047f04fce5bf5.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>3. \u0414\u0430\u0451\u043c PHPStorm \u0437\u043d\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > PHP > Servers<\/code><strong> <\/strong>\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/10e\/93d\/445\/10e93d445aea4058bf39d3878382b793.jpg\" width=\"1334\" height=\"586\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/10e\/93d\/445\/10e93d445aea4058bf39d3878382b793.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0440\u0442 \u0431\u0435\u0440\u0451\u043c \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 <code>nginx<\/code>. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043f\u043e\u0434\u043d\u044f\u0442 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430\u0440\u0443\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 8001<\/p>\n<p>\u0422\u0443\u0442 \u0432\u0430\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c <code>Name<\/code>, \u044d\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>4. \u0427\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0434\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e PHPStorm \u0441 XDebug<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > PHP > Debug > XDebug<\/code> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0440\u0442 9001:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/10f\/01e\/988\/10f01e98893a11ad51049a3811292dae.png\" width=\"1068\" height=\"374\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/10f\/01e\/988\/10f01e98893a11ad51049a3811292dae.png\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>5. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Run > Edit configurations<\/code> \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 <code>PHP Remote Debug<\/code>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/ab8\/08e\/b14\/ab808eb14a805e7b057a1146850724db.jpg\" width=\"2068\" height=\"430\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ab8\/08e\/b14\/ab808eb14a805e7b057a1146850724db.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c <code>Server<\/code> \u044d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 <code>Name<\/code> \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 #3<\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043e\u043a\u043d\u0435 <code>Name<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c, \u043d\u0430\u0434\u043e \u0435\u0433\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u043e\u043d, \u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435<\/p>\n<p><code>IDE key<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>6. \u0414\u043e\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c docker-compose.yml<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0441 <code>PHP<\/code> \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 <code>XDebug<\/code> \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u0445\u043e\u0441\u0442\u0443:<\/p>\n<pre><code class=\"yaml\">old.???.php:   container_name: old.???.php   build: .\/docker\/php   volumes:     - .\/:\/app   restart: unless-stopped   extra_hosts:     - \"host.docker.internal:host-gateway\" <\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 <code>extra_hosts<\/code>, \u043e\u043d\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>7. \u0414\u043e\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Dockerfile \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0441 PHP<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 \u043f\u0435\u0440\u0435\u0434 <code>WORKDIR \/app<\/code>:<\/p>\n<pre><code class=\"bash\"># xdebug COPY --from=mlocati\/php-extension-installer \/usr\/bin\/install-php-extensions \/usr\/bin\/ RUN install-php-extensions xdebug ENV PHP_IDE_CONFIG 'serverName=old.???\u2019 RUN echo \"xdebug.remote_enable=1\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_host=docker.for.mac.localhost\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_port=9001\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_log=\/var\/log\/xdebug.log\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_autostart=1\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u0441\u0442\u0430\u0432\u0438\u0442 <code>XDebug<\/code> \u0447\u0435\u0440\u0435\u0437 \u0447\u0435\u0440\u0435\u0437 <code>pecl<\/code> \u0438 \u0437\u0430\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <code>XDebug<\/code> \u0432 \u043a\u043e\u043d\u0444\u0438\u0433<\/p>\n<p>\u0418\u0437 \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u0430\u0436\u043d\u043e\u0433\u043e \u0437\u0434\u0435\u0441\u044c:<\/p>\n<ol>\n<li>\n<p><code>ENV PHP_IDE_CONFIG<\/code> &#8212; \u0432 <code>serverName<\/code> \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c <code>Name<\/code> \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 #5<\/p>\n<\/li>\n<li>\n<p><code>xdebug.remote_port<\/code> &#8212; \u043f\u043e\u0440\u0442 \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 #4<\/p>\n<\/li>\n<li>\n<p><code>xdebug.remote_host<\/code> &#8212; \u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0445\u043e\u0441\u0442 \u0434\u043b\u044f \u043c\u0430\u043a\u0430, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043b\u0438\u043d\u0443\u043a\u0441 \u0438\u043b\u0438 \u0432\u0438\u043d\u0434\u0430, \u0442\u043e \u043f\u043e\u0438\u0449\u0438\u0442\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b, \u043e\u043d\u0438 \u0442\u043e\u0447\u043d\u043e \u0435\u0441\u0442\u044c<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>8. \u0421\u0442\u0430\u0432\u0438\u043c \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0438\u043d\u0442\u044b, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0430\u0439\u0442 \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u0436\u0438\u0437\u043d\u0438<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0442\u0443\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e \ud83d\ude42<\/p>\n<\/div>\n<\/details>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442!<\/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\/post\/712670\/\"> https:\/\/habr.com\/ru\/post\/712670\/<\/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-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<details class=\"spoiler\">\n<summary>\u0422\u0430\u043a\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 \u0443\u0436\u0435 \u0442\u044b\u0441\u044f\u0447\u0430, \u0437\u0430\u0447\u0435\u043c?<\/summary>\n<div class=\"spoiler__content\">\n<p>\u041c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0438 \u043e\u0434\u043d\u0430. \u042f \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u043b \u043e\u043a\u043e\u043b\u043e \u0434\u0432\u0443\u0445 \u0447\u0430\u0441\u043e\u0432 \u043d\u0430 \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0438 \u0437\u0430 \u044d\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0448\u0451\u043b \u043e\u043a\u043e\u043b\u043e \u0434\u0435\u0441\u044f\u0442\u043a\u0430 \u0441\u0442\u0430\u0442\u0435\u0439, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0438\u0431\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u044b\u043b\u0438 \u043d\u0435\u043f\u043e\u043b\u043d\u044b\u0435, \u043b\u0438\u0431\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0435<\/p>\n<\/div>\n<\/details>\n<p>\u042f \u043e\u0436\u0438\u0434\u0430\u044e, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0434\u043e\u043a\u0435\u0440\u043e\u043c.<\/p>\n<p>\u0428\u0430\u0433\u043e\u0432, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043d\u0435\u043c\u043d\u043e\u0433\u043e, \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435.<\/p>\n<details class=\"spoiler\">\n<summary>1. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e PHPStorm \u0441 Docker<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > Build, Execution, Deployment > Docker<\/code> \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <code>Docker<\/code>:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>2. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 (\u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435) \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > PHP > CLI Interpreter > 3 \u0442\u043e\u0447\u043a\u0438 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 \u043d\u0435\u0433\u043e<\/code> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<figure class=\"full-width\"><figcaption>\u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0445\u043f, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432\u0435\u0440\u0441\u0438\u044f 5.6, \u043d\u043e \u044d\u0442\u043e \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u0435\u0442<\/figcaption><\/figure>\n<p><code>Name<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c<\/p>\n<p><code>Server<\/code> \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u043e\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0448\u0430\u0433\u043e\u043c \u0440\u0430\u043d\u0435\u0435<\/p>\n<p><code>Configuration files<\/code>: \u043f\u0443\u0442\u044c \u0434\u043e <code>docker-compose.yml<\/code><\/p>\n<p><code>Service<\/code>: \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0441 <code>PHP<\/code><\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441, \u043d\u043e \u0432 \u0433\u0440\u0430\u0444\u0435 <code>Lifecycle<\/code> \u043b\u0443\u0447\u0448\u0435 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <code>connect to existing container<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0432 \u0433\u0440\u0430\u0444\u0435 <code>CLI Interpreter<\/code> \u0432\u044b \u0443\u0432\u0438\u0434\u0438\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>3. \u0414\u0430\u0451\u043c PHPStorm \u0437\u043d\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > PHP > Servers<\/code><strong> <\/strong>\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0440\u0442 \u0431\u0435\u0440\u0451\u043c \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0430 <code>nginx<\/code>. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043d \u043f\u043e\u0434\u043d\u044f\u0442 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u043d\u0430\u0440\u0443\u0436\u0443 \u0447\u0435\u0440\u0435\u0437 8001<\/p>\n<p>\u0422\u0443\u0442 \u0432\u0430\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c <code>Name<\/code>, \u044d\u0442\u043e \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>4. \u0427\u0443\u0442\u044c-\u0447\u0443\u0442\u044c \u0434\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e PHPStorm \u0441 XDebug<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Settings > PHP > Debug > XDebug<\/code> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u0440\u0442 9001:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>5. \u041d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440\u0430<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0418\u0434\u0451\u043c \u0432 <code>Run > Edit configurations<\/code> \u0438 \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 <code>PHP Remote Debug<\/code>:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c <code>Server<\/code> \u044d\u0442\u043e \u043a\u0430\u043a \u0440\u0430\u0437 <code>Name<\/code> \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 #3<\/p>\n<p>\u0412 \u044d\u0442\u043e\u043c \u043e\u043a\u043d\u0435 <code>Name<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c, \u043d\u0430\u0434\u043e \u0435\u0433\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u043e\u043d, \u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435<\/p>\n<p><code>IDE key<\/code> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u044e\u0431\u044b\u043c<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>6. \u0414\u043e\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c docker-compose.yml<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0412 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0435 \u0441 <code>PHP<\/code> \u0434\u043b\u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 <code>XDebug<\/code> \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u0445\u043e\u0441\u0442\u0443:<\/p>\n<pre><code class=\"yaml\">old.???.php:   container_name: old.???.php   build: .\/docker\/php   volumes:     - .\/:\/app   restart: unless-stopped   extra_hosts:     - \"host.docker.internal:host-gateway\" <\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0430 <code>extra_hosts<\/code>, \u043e\u043d\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>7. \u0414\u043e\u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c Dockerfile \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430 \u0441 PHP<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0430 \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 \u043f\u0435\u0440\u0435\u0434 <code>WORKDIR \/app<\/code>:<\/p>\n<pre><code class=\"bash\"># xdebug COPY --from=mlocati\/php-extension-installer \/usr\/bin\/install-php-extensions \/usr\/bin\/ RUN install-php-extensions xdebug ENV PHP_IDE_CONFIG 'serverName=old.???\u2019 RUN echo \"xdebug.remote_enable=1\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_host=docker.for.mac.localhost\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_port=9001\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_log=\/var\/log\/xdebug.log\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini RUN echo \"xdebug.remote_autostart=1\" >> \/usr\/local\/etc\/php\/conf.d\/docker-php-ext-xdebug.ini<\/code><\/pre>\n<p>\u042d\u0442\u043e\u0442 \u043a\u0443\u0441\u043e\u043a \u0441\u0442\u0430\u0432\u0438\u0442 <code>XDebug<\/code> \u0447\u0435\u0440\u0435\u0437 \u0447\u0435\u0440\u0435\u0437 <code>pecl<\/code> \u0438 \u0437\u0430\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <code>XDebug<\/code> \u0432 \u043a\u043e\u043d\u0444\u0438\u0433<\/p>\n<p>\u0418\u0437 \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u0430\u0436\u043d\u043e\u0433\u043e \u0437\u0434\u0435\u0441\u044c:<\/p>\n<ol>\n<li>\n<p><code>ENV PHP_IDE_CONFIG<\/code> &#8212; \u0432 <code>serverName<\/code> \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c <code>Name<\/code> \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 #5<\/p>\n<\/li>\n<li>\n<p><code>xdebug.remote_port<\/code> &#8212; \u043f\u043e\u0440\u0442 \u0438\u0437 \u043f\u0443\u043d\u043a\u0442\u0430 #4<\/p>\n<\/li>\n<li>\n<p><code>xdebug.remote_host<\/code> &#8212; \u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0445\u043e\u0441\u0442 \u0434\u043b\u044f \u043c\u0430\u043a\u0430, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u043b\u0438\u043d\u0443\u043a\u0441 \u0438\u043b\u0438 \u0432\u0438\u043d\u0434\u0430, \u0442\u043e \u043f\u043e\u0438\u0449\u0438\u0442\u0435 \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u044b, \u043e\u043d\u0438 \u0442\u043e\u0447\u043d\u043e \u0435\u0441\u0442\u044c<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>8. \u0421\u0442\u0430\u0432\u0438\u043c \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0438\u043d\u0442\u044b, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u0441\u0430\u0439\u0442 \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f \u0436\u0438\u0437\u043d\u0438<\/summary>\n<div class=\"spoiler__content\">\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0442\u0443\u0442 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435\u0447\u0435\u0433\u043e \ud83d\ude42<\/p>\n<\/div>\n<\/details>\n<p>\u0411\u0443\u0434\u0443 \u0440\u0430\u0434, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442!<\/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\/post\/712670\/\"> https:\/\/habr.com\/ru\/post\/712670\/<\/a><br \/><\/br><\/br><\/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-344437","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344437","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=344437"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344437\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}