{"id":889,"date":"2024-01-19T23:59:40","date_gmt":"2024-01-19T14:59:40","guid":{"rendered":"https:\/\/web.cloudfree.jp\/journal\/?p=889"},"modified":"2024-02-01T12:38:40","modified_gmt":"2024-02-01T03:38:40","slug":"php%e3%81%aexdebug%e3%81%8ccpu%e4%bd%bf%e7%94%a8%e7%8e%87100%e3%81%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/web.cloudfree.jp\/journal\/php%e3%81%aexdebug%e3%81%8ccpu%e4%bd%bf%e7%94%a8%e7%8e%87100%e3%81%ab%e3%81%99%e3%82%8b\/","title":{"rendered":"PHP\u306e[XDebug]\u304cCPU\u4f7f\u7528\u7387100%\u306b\u3059\u308b"},"content":{"rendered":"<h3 class=\"wp-block-post-title\">PHP\u306e[XDebug]\u304cCPU\u4f7f\u7528\u7387100%\u306b\u3059\u308b<\/h3>\n\n\n<p class=\"has-tertiary-color has-text-color has-background has-small-font-size\" style=\"background-color:#8d8dd8;margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">2024-01-19 \u8a18\u8f09<br>\u6982\u8981 : php.ini\u3067XDebug\u3092\u6709\u52b9\u306b\u3059\u308b\u3068Apache\u30d7\u30ed\u30bb\u30b9\u304c\u6b8b\u3063\u3066CPU\u4f7f\u7528\u7387\u3092100%\u306b\u3059\u308b<br>Keyword : XDebug, php.ini, VSCode, \u30c7\u30d0\u30c3\u30b0, apache<\/p>\n\n\n\n<p>\u300c<a href=\"https:\/\/web.cloudfree.jp\/journal\/php-debug%e7%92%b0%e5%a2%83%e3%81%ae%e6%a7%8b%e7%af%89-xdebug\/\" data-type=\"post\" data-id=\"532\">PHP \u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u306e\u69cb\u7bc9 XDebug<\/a>\u300d<br>\u306b\u3066PHP\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u304c\u3001\u554f\u984c\u3042\u308a\u3067\u3057\u305f\u3002<br>VSCode\u3092IDE\u7684\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u306f\u3088\u3044\u306e\u3067\u3059\u304c\u3001VSCode\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3044\u306a\u3044\u306e\u306b\u306a\u305c\u304bXDebug\u304c\u50cd\u304d\u51fa\u3057\u3066CPU\u4f7f\u7528\u7387\u3092100%\u306b\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br>CPU\u30d5\u30a1\u30f3\u304c\u30d5\u30eb\u56de\u8ee2\u3067\u307e\u308f\u308a\u59cb\u3081\u3066\u305d\u308c\u3068\u6c17\u3065\u304f\u306e\u3067\u3059\u304c\u3002<br>\u30bf\u30b9\u30af\u30de\u30cd\u30fc\u30b8\u30e3\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3068Apache\u30d7\u30ed\u30bb\u30b9\u304c\u6b8b\u3063\u3066\u3044\u3066\u3001\u305d\u308c\u304cCPU\u4f7f\u7528\u7387100%\u3067\u3059\u3002apache\u3092Restart\u3055\u305b\u3066\u3082\u304a\u3055\u307e\u3089\u305a\u3002<br><br>php.ini\u3067<br>xdebug.start_with_request = torigger<br>\u3067\u3057\u305f\u3051\u3069<br>xdebug.start_with_request = no<br>\u306b\u5909\u3048\u307e\u3057\u305f\u3002\u304c\uff01\u306a\u3093\u3068\u305d\u308c\u3067\u3082CPU\u4f7f\u7528\u7387\u3092100%\u306b\u306a\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u982d\u3092\u62b1\u3048\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>[XDebug]\n;zend_extension = &quot;C:\\pgm\\php8\\ext\\php_xdebug-3.3.1-8.3-vs16-x86_64.dll&quot;\n;xdebug.mode=debug\n;xdebug.start_with_request = no\n;xdebug.client_host=127.0.0.1\n;xdebug.client_port=9000\n;xdebug.log_level=0<\/code><\/pre><\/div>\n\n\n\n<p>\u5bfe\u7b56\u3068\u3057\u3066\u3001VSCode\u3067PHP\u30c7\u30d0\u30c3\u30b0\u3092\u884c\u3046\u3053\u3068\u306f\u305d\u3046\u305d\u3046\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u4f7f\u3046\u3068\u304d\u3060\u3051XDebug\u3092\u6709\u52b9\u306b\u3059\u308b\u3001\u3068\u3044\u3046\u65b9\u6cd5\u306b\u3057\u307e\u3057\u305f\u3002<br>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u666e\u6bb5\u306f\u30aa\u30fc\u30eb\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3002<br>\uff11\u30af\u30ea\u30c3\u30af\u3067\u30b3\u30e1\u30f3\u30c8\u3092\u8a18\u5165\u30fb\u9664\u53bb\u3067\u304d\u308b\u3088\u306bExcel\u30de\u30af\u30ed\u3092\u7d44\u307f\u307e\u3057\u305f\u306e\u3067\u3001\u3055\u307b\u3069\u624b\u9593\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br>\u3055\u3059\u304c\u306b\u3053\u308c\u3060\u3068Apache\u30d7\u30ed\u30bb\u30b9\u304c\u6b8b\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u3001\u4ee5\u964d\u304a\u3053\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u3069\u3046\u3082\u3053\u306e\u3042\u305f\u308a\u306e\u672c\u6765\u306e\u8a2d\u5b9a\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044\u307e\u307e\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CPU\u30d5\u30a1\u30f3\u304c\u30d5\u30eb\u56de\u8ee2\u3067\u307e\u308f\u308a\u59cb\u3081\u3066\u3001\u30d8\u30f3\u306b\u6b8b\u3063\u3066\u3044\u308bApache\u30d7\u30ed\u30bb\u30b9\u304cCPU\u4f7f\u7528\u7387100%\u306b\u3057\u3066\u3044\u308b\u3068\u6c17\u3065\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":849,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"wp-custom-template-x24-index","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[21,23,28,48],"_links":{"self":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts\/889"}],"collection":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/comments?post=889"}],"version-history":[{"count":0,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/posts\/889\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/media\/849"}],"wp:attachment":[{"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/media?parent=889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/categories?post=889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web.cloudfree.jp\/journal\/wp-json\/wp\/v2\/tags?post=889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}