{"id":1440,"date":"2018-01-19T19:22:50","date_gmt":"2018-01-19T19:22:50","guid":{"rendered":"http:\/\/goofy-trucks.flywheelsites.com\/beginner-debugging-for-your-eyes-only\/"},"modified":"2018-01-19T19:24:47","modified_gmt":"2018-01-19T19:24:47","slug":"beginner-debugging-for-your-eyes-only","status":"publish","type":"post","link":"https:\/\/phpbuilder.com\/beginner-debugging-for-your-eyes-only\/","title":{"rendered":"Beginner Debugging: For Your Eyes Only"},"content":{"rendered":"<div class=\"phpbuilder-content\">\n<div class=\"phpbuilder-meta\">\n<div class=\"\">By John Starkey<\/div>\n<div class=\"\">on October 30, 2002<\/div>\n<\/p><\/div>\n<div id=\"overflow-content\">\n<div class=\"articlePara\">\nWhen debugging a site that&#8217;s live, viewing the progression of your script can save quite a bit of time,<br \/>\nresulting in considerably less complaints. However, it&#8217;s absolutely essential that you avoid throwing<br \/>\nyour variables to the screen while visitors are viewing your pages. One way to avoid exposing your<br \/>\nsensitive data, while also giving yourself a live printout of your variables is by making them visible<br \/>\nto only you and\/or your team.\n<\/div>\n<div class=\"articlePara\">\nThe technique I will show you here requires that you have a static IP, or that you are willing to monitor<br \/>\nyour dynamic IP and change values as it changes. Also, everything that is echoed to the screen will be<br \/>\nvisible to anyone on your IP. So, if you are sharing IPs with someone you don&#8217;t want viewing your data,<br \/>\nthis is not the technique you should use. This should also not be used for extremely sensitive data. If you<br \/>\nthink that it&#8217;s worth someone&#8217;s time spoofing your address, then avoid this at all costs. However, if your<br \/>\ncode is strictly for handling your grocery list, and you don&#8217;t mind coming home with 100 extra cans of Minestrone,<br \/>\nonly to find that your wife didn&#8217;t enter them, this might be optimal for you.\n<\/div>\n<div class=\"articlePara\">\nAnother very important thing to remember: never leave debugging on any longer than you have to. Once you&#8217;ve<br \/>\ncompleted your mission, be sure to turn it off. This will help to minimize the chances of someone grabbing your<br \/>\ndata while you aren&#8217;t looking.\n<\/div>\n<\/div>\n<p><\/p>\n<div style=\"float: left; padding:15px; color:#17AAF3\">\n<div style=\"background-color:#B6E5FC; font-size:16px; margin-top:1px; padding:1px 4px 1px 4px; color:#000; font-style:bold; float:left;\">1<\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey200210204658.html?page=2\">2<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey200210209ba9.html?page=3\">3<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey20021020fdb0.html?page=4\">4<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"starkey20021020af4d.html?page=5\">5<\/a> <\/div>\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"starkey200210204658.html?page=2\">Next Page \u00bb<\/a><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>When debugging a site that&#8217;s live, viewing the progression of your script can save quite a bit of time, resulting in considerably less complaints.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1440","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/comments?post=1440"}],"version-history":[{"count":1,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1440\/revisions"}],"predecessor-version":[{"id":3298,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1440\/revisions\/3298"}],"wp:attachment":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/media?parent=1440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/categories?post=1440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/tags?post=1440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}