{"id":1444,"date":"2019-12-30T16:45:33","date_gmt":"2019-12-30T08:45:33","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1444"},"modified":"2020-04-28T13:41:06","modified_gmt":"2020-04-28T05:41:06","slug":"python-%e7%88%ac%e9%98%b6%e6%a2%af-%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8-pdb-%e6%9d%a5-debug-%e4%bd%a0%e7%9a%84%e4%bb%a3%e7%a0%81%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1444","title":{"rendered":"Python \u722c\u9636\u68af | \u5982\u4f55\u4f7f\u7528 pdb \u6765 debug \u4f60\u7684\u4ee3\u7801\uff1f"},"content":{"rendered":"\n<p>\u5f53\u4f60\u7684\u4ee3\u7801\u5199\u5f97\u591a\u4e86\uff0c\u4f60\u603b\u4f1a\u51fa\u73b0\u8fd9\u6837\u6216\u8005\u90a3\u6837\u7684\u9519\u8bef\uff0c\u6709\u65f6\u5019\u4ee3\u7801\u7a81\u7136\u53ef\u4ee5\u7528\uff0c\u6709\u65f6\u5019\u4ee3\u7801\u53c8\u7a81\u7136\u50bb\u903c\uff0c\u6709\u65f6\u5019\u4f60\u53ea\u662f\u79bb\u5f00\u4e00\u4f1a\uff0c\u5b83\u5c31\u81ea\u52a8\u597d\u4e86&#8230;\u5c31\u662f\u8fd9\u4e48\u9b54\u5e7b\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\uff0c\u5c0f\u5e05b\u6765\u8ddf\u4f60\u8bf4\u8bf4 debug \uff0c\u5176\u5b9e debug \u8fd8\u662f\u633a\u91cd\u8981\u7684\uff0c\u5b83\u9664\u4e86\u53ef\u4ee5\u5e2e\u52a9\u4f60\u81ea\u5df1\u53d1\u73b0\u4ee3\u7801\u81ea\u8eab\u7684 bug \u4e4b\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7 debug \u6e05\u695a\u7684\u77e5\u9053\u4ee3\u7801\u7684\u6267\u884c\u6d41\u7a0b\uff0c\u6bd4\u5982\u53d8\u91cf\u662f\u600e\u4e48\u8d4b\u503c\u7684\uff0c\u6570\u636e\u662f\u5982\u4f55\u6539\u53d8\u7684&#8230;, \u4f60\u90fd\u53ef\u4ee5\u901a\u8fc7 debug \u624b\u6bb5\u6e05\u695a\u7684\u770b\u5230\u8fd9\u4e9b\u73a9\u610f\u7684\u53d8\u5316\u3002<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D1444\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"515\" height=\"288\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-13-35-03.png\" alt=\"\" class=\"wp-image-5160\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-13-35-03.png 515w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-13-35-03-300x168.png 300w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/figure><\/div>\n\n\n\n<p>\u5982\u679c\u4f60\u4f7f\u7528 vim \u7f16\u8f91\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528 repl \u63d2\u4ef6\u7ed3\u5408 ipdb \u5b9e\u73b0\u8c03\u8bd5\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/03\/Peek-2020-03-30-02-25.gif\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u5177\u4f53\u4f7f\u7528\u65b9\u5f0f\u53ef\u4ee5\u770b\u770b\u8fd9\u7bc7\uff1a<a href=\"https:\/\/vip.fxxkpython.com\/?cat=343\">Python Vim \u7f16\u8f91\u5668\u7684\u4f7f\u7528<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u4f60\u7684\u4ee3\u7801\u5199\u5f97\u591a\u4e86\uff0c\u4f60\u603b\u4f1a\u51fa\u73b0\u8fd9\u6837\u6216\u8005\u90a3\u6837\u7684\u9519\u8bef\uff0c\u6709\u65f6\u5019\u4ee3\u7801\u7a81\u7136\u53ef\u4ee5\u7528\uff0c\u6709\u65f6\u5019\u4ee3\u7801\u53c8\u7a81\u7136\u50bb\u903c\uff0c\u6709\u65f6\u5019\u4f60\u53ea\u662f\u79bb\u5f00\u4e00\u4f1a\uff0c\u5b83\u5c31\u81ea\u52a8\u597d\u4e86&#8230;\u5c31\u662f\u8fd9\u4e48\u9b54\u5e7b\u3002 \u4eca\u5929\uff0c\u5c0f\u5e05b\u6765\u8ddf\u4f60\u8bf4\u8bf4 debug \uff0c\u5176\u5b9e debug \u8fd8\u662f\u633a\u91cd\u8981\u7684\uff0c\u5b83\u9664\u4e86\u53ef\u4ee5\u5e2e\u52a9\u4f60\u81ea\u5df1\u53d1&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[140],"tags":[125,258,256,141,257,259],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1444"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1444"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":5161,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions\/5161"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}