{"id":7272,"date":"2019-07-04T10:00:00","date_gmt":"2019-07-04T01:00:00","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=7272"},"modified":"2019-07-02T20:17:47","modified_gmt":"2019-07-02T11:17:47","slug":"visual-studio-code%e3%81%a7php%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%82%92%e3%81%8a%e3%81%93%e3%81%aa%e3%81%86%e6%96%b9%e6%b3%95%ef%bc%88%e3%81%9d%e3%81%ae5%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/7272","title":{"rendered":"Visual Studio Code\u3067PHP\u30c7\u30d0\u30c3\u30b0\u3092\u304a\u3053\u306a\u3046\u65b9\u6cd5\uff08\u305d\u306e5\uff09"},"content":{"rendered":"\n<p>\u304b\u306a\u308a\u30d6\u30e9\u30f3\u30af\u304c\u3042\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001<a rel=\"noreferrer noopener\" aria-label=\"\u524d\u56de(\u305d\u306e4) (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\" href=\"\/appnews\/archives\/6735\" target=\"_blank\">\u524d\u56de(\u305d\u306e4)<\/a>\u3067\u306f\u3001\u300cXDebug\u300d\u3068\u300cVisual Studio Code\u300d\u3092\u9023\u643a\u3055\u305b\u308b\u3068\u3053\u308d\u307e\u3067\u306e\u8aac\u660e\u3092\u304a\u3053\u306a\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306b\u30c7\u30d0\u30c3\u30b0\u3092\u304a\u3053\u306a\u3046\u306e\u304b\u306e\u8aac\u660e\u306f\u3067\u304d\u3066\u304a\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u306e\u3067\u3001\u4eca\u56de(\u305d\u306e5)\u3067\u306f\u300cVisual Studio Code\u300d\u3092\u4f7f\u7528\u3057\u3066\u5b9f\u969b\u306b\u30c7\u30d0\u30c3\u30b0\u3092\u304a\u3053\u306a\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u4eca\u56de\u306f\u8aac\u660e\u7528\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306aphp\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br> C:\\xampp\\htdocs\\debugtest\\index.php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\n\n$a = 2;\n$b = 3;\n$c = 0;\n\n$c = $a + $b;\n\necho $c;\n\n?><\/code><\/pre>\n\n\n\n<p>$a\u3068$b\u306e\u5408\u8a08(\u8a08\u7b97\u7d50\u679c)\u304c$c\u306b\u4ee3\u5165\u3055\u308c\u3001\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c7\u30d0\u30c3\u30b0\u306e\u57fa\u672c\u7684\u306a\u6d41\u308c\u3068\u3057\u3066\u306f\u3001\u4efb\u610f\u306e\u884c\u306b\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u884c\u5358\u4f4d\u3067\u5909\u6570\u306e\u4e2d\u8eab\u306a\u3069\u306e\u78ba\u8a8d\u3092\u304a\u3053\u306a\u3044\u306a\u304c\u3089\u51e6\u7406\u3092\u8ffd\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u4e0a\u8a18\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e3\u884c\u76ee($a = 2;)\u306e\u884c\u306b\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Visual Studio Code\u3067\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u884c\u756a\u53f7\u306e\u6a2a\u306e\u7a7a\u767d\u90e8\u5206\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u4e0b\u56f3\u306e\u3088\u3046\u306b\u8d64\u8272\u306e\u4e38\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u306e\u8a2d\u5b9a\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"826\" height=\"652\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2019\/07\/1.png\" alt=\"\" class=\"wp-image-7275\"\/><\/figure>\n\n\n\n<p>\u6b21\u306b\u300cListen for XDebug\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u753b\u9762\u4e0a\u90e8\u306b\u4e00\u6642\u505c\u6b62(Pause)\u30dc\u30bf\u30f3\u3084\u30b9\u30c6\u30c3\u30d7\u30aa\u30fc\u30d0\u30fc(Step Over)\u30dc\u30bf\u30f3\u306a\u3069\u304c\u914d\u7f6e\u3055\u308c\u305f\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u64cd\u4f5c\u30d0\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"828\" height=\"654\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2019\/07\/2.png\" alt=\"\" class=\"wp-image-7277\"\/><\/figure>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u4ee5\u4e0b\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<br> http:\/\/localhost\/debugtest\/<\/p>\n\n\n\n<p>\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u306e\u8a2d\u5b9a\u3057\u305f\u7b87\u6240\u3067\u51e6\u7406\u306f\u505c\u6b62\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u306f\u306a\u306b\u3082\u8868\u793a\u3055\u308c\u305a\u3001\u300clocalhost\u3092\u5f85\u6a5f\u3057\u3066\u3044\u307e\u3059\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"585\" height=\"324\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2019\/07\/3.png\" alt=\"\" class=\"wp-image-7279\"\/><figcaption><br><\/figcaption><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30b9\u30c6\u30c3\u30d7\u30aa\u30fc\u30d0\u30fc(Step Over)\u30dc\u30bf\u30f3\u3067\u51e6\u7406\u30921\u884c\u305a\u3064\u3059\u3059\u3081\u3066\u3044\u304d\u307e\u3059\u3002\u4e0b\u56f3\u306f<br> 5\u884c\u76ee\u307e\u3067\u51e6\u7406\u3092\u3059\u3059\u3081\u305f\u6642\u70b9\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002<br> \u73fe\u6642\u70b9\u306e\u505c\u6b62\u7b87\u6240\u306f<strong>\u9ec4\u8272\u306e\u77e2\u5370<\/strong>\u304c\u793a\u3057\u3066\u3044\u307e\u3059\u3002<br> \u753b\u9762\u5de6\u6a2a\u306eLocals\u3067\u306f\u305d\u306e\u6642\u70b9\u3067\u306e\u5909\u6570\u306e\u4e2d\u8eab\u306e\u78ba\u8a8d\u304c\u304a\u3053\u306a\u3048\u307e\u3059\u3002<br> $a\u306b\u306f2\u304c\u4ee3\u5165\u3055\u308c\u3001$b\u306b\u306f3\u304c\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<br> \u3053\u306e\u6642\u70b9\u3067\u306f$c\u306f\u521d\u671f\u5316\u3055\u308c\u3066\u3044\u307e\u305b\u3093(uninitialized)\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"828\" height=\"652\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2019\/07\/4.png\" alt=\"\" class=\"wp-image-7284\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3055\u3089\u306b\u51e6\u7406\u3092\u3059\u3059\u3081\u3066\u3044\u304d\u307e\u3059\u3002\u4e0b\u56f3\u306f9\u884c\u76ee\u307e\u3067\u51e6\u7406\u3092\u3059\u3059\u3081\u305f\u6642\u70b9\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3067\u3059\u3002<br> \u3053\u306e\u6642\u70b9\u3067\u306f\u3001$c\u306b\u3001$a\u3068$b\u306e\u5408\u8a08(\u8a08\u7b97\u7d50\u679c)\u304c\u4ee3\u5165\u3055\u308c\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"828\" height=\"652\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2019\/07\/5.png\" alt=\"\" class=\"wp-image-7280\"\/><\/figure>\n\n\n\n<p>\u51e6\u7406\u304c\u3072\u3068\u3068\u304a\u308a\u7d42\u4e86\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u51fa\u529b\u7d50\u679c\u304c\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"581\" height=\"324\" src=\"\/appnews\/wp-content\/uploads\/sites\/4\/2019\/07\/6.png\" alt=\"\" class=\"wp-image-7281\"\/><\/figure>\n\n\n\n<p>\u4ee5\u4e0a\u304c\u30c7\u30d0\u30c3\u30b0\u306e\u57fa\u672c\u7684\u306a\u6d41\u308c\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u8aac\u660e\u3067\u306f\u300c\u30b9\u30c6\u30c3\u30d7\u30aa\u30fc\u30d0\u30fc(Step Over)\u300d\u306e\u307f\u4f7f\u7528\u3057\u307e\u3057\u305f\u304c\u3001<br> \u5b9f\u969b\u306e\u30c7\u30d0\u30c3\u30b0\u4f5c\u696d\u3067\u306f\u3001\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u3001\u300c\u30b9\u30c6\u30c3\u30d7\u30a4\u30f3(Step In)\u300d\u3084\u300c\u30b9\u30c6\u30c3\u30d7\u30a2\u30a6\u30c8(Step Out)\u300d\u306a\u3069\u3082\u4f75\u7528\u3057\u307e\u3059\u3002\u5404\u6a5f\u80fd\u306e\u4f7f\u3044\u5206\u3051\u306b\u3064\u3044\u3066\u306f\u4e0b\u8a18\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u25a0\u30b9\u30c6\u30c3\u30d7\u30aa\u30fc\u30d0\u30fc(Step Over)<br> \u30b9\u30c6\u30c3\u30d7\u30aa\u30fc\u30d0\u30fc\u306f1\u884c\u5358\u4f4d\u3067\u51e6\u7406\u3092\u3059\u3059\u3081\u3066\u3044\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u51e6\u7406\u306e\u9014\u4e2d\u3067\u95a2\u6570\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u95a2\u6570\u306e\u5185\u90e8\u51e6\u7406\u306b\u307e\u3067\u5165\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u25a0\u30b9\u30c6\u30c3\u30d7\u30a4\u30f3(Step In)<br> \u30b9\u30c6\u30c3\u30d7\u30a4\u30f3\u306f1\u884c\u5358\u4f4d\u3067\u51e6\u7406\u3092\u3059\u3059\u3081\u3066\u3044\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u51e6\u7406\u306e\u9014\u4e2d\u3067\u95a2\u6570\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u95a2\u6570\u306e\u5185\u90e8\u51e6\u7406\u306b\u5165\u308a\u3001\u95a2\u6570\u5185\u90e8\u306e\u51e6\u7406\u30821\u884c\u5358\u4f4d\u3067\u51e6\u7406\u3092\u6b62\u3081\u306a\u304c\u3089\u3059\u3059\u3081\u3066\u3044\u304f\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u25a0\u30b9\u30c6\u30c3\u30d7\u30a2\u30a6\u30c8(Step Out)<br> \u30b9\u30c6\u30c3\u30d7\u30a2\u30a6\u30c8\u306f\u3001\u73fe\u5728\u5b9f\u884c\u4e2d\u306e\u95a2\u6570\u306e\u547c\u3073\u51fa\u3057\u5143\u306b\u623b\u308b\u307e\u3067\u51e6\u7406\u3092\u3059\u3059\u3081\u307e\u3059\u3002\u30b9\u30c6\u30c3\u30d7\u30a4\u30f3\u3067\u95a2\u6570\u306e\u5185\u90e8\u51e6\u7406\u306b\u5165\u3063\u305f\u3051\u308c\u3069\u3001\u305d\u306e\u95a2\u6570\u306b\u554f\u984c\u306f\u306a\u3055\u305d\u3046\u306a\u5834\u5408\u3001\u30b9\u30c6\u30c3\u30d7\u30a4\u30f3\u3059\u308b\u524d\u306e\u72b6\u614b\u306b\u623b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u30c7\u30d0\u30c3\u30b0\u6a5f\u80fd\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u51e6\u7406\u306e\u6d41\u308c\u3092\u30b9\u30c6\u30c3\u30d7\u3067\u78ba\u8a8d\u3092\u304a\u3053\u306a\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u51e6\u7406\u30d5\u30ed\u30fc\u3084\u5909\u6570\u306e\u4e2d\u8eab\u306e\u78ba\u8a8d\u7b49\u306e\u624b\u9593\u304c\u8efd\u6e1b\u3055\u308c\u3001\u3088\u308a\u52b9\u7387\u3088\u304f\u958b\u767a\u3092\u3059\u3059\u3081\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6728\u66dc\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7272\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/7272\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"Visual Studio Code\u3067PHP\u30c7\u30d0\u30c3\u30b0\u3092\u304a\u3053\u306a\u3046\u65b9\u6cd5\uff08\u305d\u306e5\uff09\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7272\" data-text=\"Visual Studio Code\u3067PHP\u30c7\u30d0\u30c3\u30b0\u3092\u304a\u3053\u306a\u3046\u65b9\u6cd5\uff08\u305d\u306e5\uff09\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7272\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/7272\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u304b\u306a\u308a\u30d6\u30e9\u30f3\u30af\u304c\u3042\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u524d\u56de(\u305d\u306e4)\u3067\u306f\u3001\u300cXDebug\u300d\u3068\u300cVisual Studio Code\u300d\u3092\u9023\u643a\u3055\u305b\u308b\u3068\u3053\u308d\u307e\u3067\u306e\u8aac\u660e\u3092\u304a\u3053\u306a\u3044\u307e\u3057\u305f\u304c\u3001\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306b\u30c7\u30d0\u30c3\u30b0\u3092\u304a\u3053\u306a\u3046\u306e\u304b\u306e\u8aac\u660e\u306f\u3067\u304d\u3066\u304a\u308a [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[72,35],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7272"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=7272"}],"version-history":[{"count":8,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7272\/revisions"}],"predecessor-version":[{"id":7299,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/7272\/revisions\/7299"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=7272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=7272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=7272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}