{"id":225,"date":"2023-06-25T03:34:38","date_gmt":"2023-04-05T20:41:25","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/python%e6%96%ad%e7%82%b9\/"},"modified":"2025-08-01T02:36:36","modified_gmt":"2025-07-31T18:36:36","slug":"python%e6%96%ad%e7%82%b9","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/","title":{"rendered":"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801"},"content":{"rendered":"<h2>Python\u65ad\u70b9()\uff1aPython 3.7\u8c03\u8bd5\u65b0\u7279\u6027\u8be6\u89e3<\/h2>\n<p>Python 3.7\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u5185\u7f6e\u51fd\u6570\uff1a<code>breakpoint()<\/code>\u3002\u5728\u6b64\u4e4b\u524d\uff0cPython\u4ee3\u7801\u8c03\u8bd5\u4e00\u76f4\u56e0\u5b9e\u9645\u4ee3\u7801\u4e0e\u8c03\u8bd5\u6a21\u5757\u4ee3\u7801\u4e4b\u95f4\u7684\u7d27\u5bc6\u8026\u5408\u800c\u663e\u5f97\u7e41\u7410\u3002\u4f8b\u5982\uff0c\u4f7f\u7528PDB\u8c03\u8bd5\u5668\u65f6\uff0c\u60a8\u5fc5\u987b\u5728\u7a0b\u5e8f\u4ee3\u7801\u4e2d\u663e\u5f0f\u8c03\u7528<code>pdb.set_trace()<\/code>\u3002\u5982\u679c\u60f3\u5207\u6362\u5230\u5176\u4ed6\u8c03\u8bd5\u5668\uff0c\u5982web-pdb\uff0c\u5219\u9700\u8981\u5220\u9664\u6240\u6709\u4e0ePDB\u76f8\u5173\u7684\u4ee3\u7801\uff0c\u5e76\u6dfb\u52a0<code>web_pdb.set_trace()<\/code>\u65b9\u6cd5\u3002\u8fd9\u79cd\u505a\u6cd5\u4e0d\u4ec5\u589e\u52a0\u4e86\u4f7f\u7528Python\u8c03\u8bd5\u5668\u65f6\u7684\u5f00\u9500\uff0c\u4e5f\u4f7f\u5f97Python\u4ee3\u7801\u96be\u4ee5\u8c03\u8bd5\u548c\u7ef4\u62a4\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\uff0cPython 3.7\u5f15\u5165\u4e86<code>breakpoint()<\/code>\u65b9\u6cd5\uff0c\u65e8\u5728\u5b9e\u73b0\u677e\u6563\u8026\u5408\u7684\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<h3>\u5728Python\u4e2d\u8bbe\u7f6e\u65ad\u70b9(<code>breakpoint()<\/code>)<\/h3>\n<p>Python\u7684<code>breakpoint()<\/code>\u51fd\u6570\u5185\u90e8\u8c03\u7528\u4e86<code>sys.breakpointhook()<\/code>\u51fd\u6570\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c<code>sys.breakpointhook()<\/code>\u51fd\u6570\u4f1a\u8fdb\u4e00\u6b65\u8c03\u7528<code>pdb.set_trace()<\/code>\u51fd\u6570\u3002\u56e0\u6b64\uff0c\u81f3\u5c11\u4ece\u4fbf\u5229\u6027\u89d2\u5ea6\u6765\u770b\uff0c\u4f7f\u7528<code>breakpoint()<\/code>\u51fd\u6570\u5728\u8c03\u8bd5\u65f6\u63d0\u4f9b\u4e86\u4f18\u52bf\uff0c\u56e0\u4e3a\u5b83\u7701\u53bb\u4e86\u663e\u5f0f\u5bfc\u5165<code>pdb<\/code>\u6a21\u5757\u7684\u6b65\u9aa4\u3002\u8ba9\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a\u4f7f\u7528<code>breakpoint()<\/code>\u51fd\u6570\u7684\u7b80\u5355\u793a\u4f8b\u6765\u7406\u89e3\u5176\u7528\u6cd5\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u540d\u4e3a<code>python_breakpoint_examples.py<\/code>\u7684Python\u811a\u672c\uff0c\u5176\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre class=\"post-pre\"><code>x = 10\r\ny = 'Hi'\r\nz = 'Hello'\r\nprint(y)\r\n\r\nbreakpoint()\r\n\r\nprint(z)\r\n<\/code><\/pre>\n<p>\u5f53\u6211\u4eec\u6267\u884c\u8fd9\u4e2a\u811a\u672c\u65f6\uff0cPDB\u8c03\u8bd5\u5668\u63a7\u5236\u53f0\u5c06\u81ea\u52a8\u6253\u5f00\uff1a<\/p>\n<pre class=\"post-pre\"><code>$python3.7 python_breakpoint_examples.py\r\nHi\r\n&gt; \/Users\/scdev\/Documents\/PycharmProjects\/BasicPython\/basic_examples\/python_breakpoint_examples.py(8)()\r\n-&gt; print(z)\r\n(Pdb) c\r\nHello\r\n$\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Python\u65ad\u70b9\u793a\u4f8b\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647968a4b2f92e6c72b354\/6-0.png\" alt=\"Python\u65ad\u70b9\u793a\u4f8b\" \/><\/div>\n<h3>Python\u7684<code>breakpoint()<\/code> &#8211; \u505c\u6b62\u8c03\u8bd5<\/h3>\n<p>Python\u7684<code>sys.breakpointhook()<\/code>\u51fd\u6570\u5229\u7528\u73af\u5883\u53d8\u91cf<code>PYTHONBREAKPOINT<\/code>\u6765\u914d\u7f6e\u8c03\u8bd5\u5668\u3002\u5982\u679c\u672a\u8bbe\u7f6e\u6b64\u73af\u5883\u53d8\u91cf\uff0c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u7684PDB\u8c03\u8bd5\u5668\u3002\u5982\u679c\u5c06\u5176\u8bbe\u7f6e\u4e3a\u201c0\u201d\uff0c\u5219<code>breakpoint()<\/code>\u51fd\u6570\u4f1a\u7acb\u5373\u8fd4\u56de\uff0c\u4e0d\u8fdb\u884c\u4efb\u4f55\u4ee3\u7801\u8c03\u8bd5\u3002\u8fd9\u5728\u60a8\u5e0c\u671b\u5728\u4e0d\u8fdb\u884c\u8c03\u8bd5\u7684\u60c5\u51b5\u4e0b\u8fd0\u884c\u4ee3\u7801\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<pre class=\"post-pre\"><code>$PYTHONBREAKPOINT=0 python3.7 python_breakpoint_examples.py\r\nHi\r\nHello\r\n$\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Python\u65ad\u70b9\u505c\u6b62\u8c03\u8bd5\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647968a4b2f92e6c72b354\/10-0.png\" alt=\"Python\u65ad\u70b9\u505c\u6b62\u8c03\u8bd5\" \/><\/div>\n<h3>Python\u4e2d\u7684<code>breakpoint()<\/code>\u51fd\u6570 &#8211; \u66f4\u6539\u8c03\u8bd5\u5668\u6a21\u5757<\/h3>\n<p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>PYTHONBREAKPOINT<\/code>\u73af\u5883\u53d8\u91cf\u4e3a<code>breakpoint()<\/code>\u51fd\u6570\u6307\u5b9a\u4e0d\u540c\u7684\u8c03\u8bd5\u5668\u65b9\u6cd5\u3002\u8fd9\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u7075\u6d3b\u6027\uff0c\u56e0\u4e3a\u6211\u4eec\u53ef\u4ee5\u5728\u4e0d\u4fee\u6539\u4efb\u4f55\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\u8f7b\u677e\u5207\u6362\u8c03\u8bd5\u5668\u6a21\u5757\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u60f3\u4f7f\u7528web-pdb\u8c03\u8bd5\u5668\uff0c\u53ea\u9700\u901a\u8fc7\u8bbe\u7f6e<code>PYTHONBREAKPOINT=web_pdb.set_trace<\/code>\u5373\u53ef\u8f7b\u677e\u5c06\u5176\u96c6\u6210\u5230\u6211\u4eec\u7684\u7a0b\u5e8f\u4e2d\u3002\u9996\u5148\uff0c\u8bf7\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5web-pdb\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>pip3.7 install web-pdb<\/code>\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>\u6839\u636eweb-pdb\u7684\u5b98\u65b9\u6587\u6863\uff0c\u5b83\u4e0ePython 3.7\u4e2d\u65b0\u589e\u7684<code>breakpoint()<\/code>\u51fd\u6570\u5b8c\u5168\u517c\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>$PYTHONBREAKPOINT=web_pdb.set_trace python3.7 python_breakpoint_examples.py\r\nHi\r\n2018-08-10 12:49:54,339: root - web_console:110 - CRITICAL - Web-PDB: starting web-server on scdev:5555...\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Python web-pdb\u8c03\u8bd5\u5668\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647968a4b2f92e6c72b354\/15-1.png\" alt=\"Python web-pdb\u8c03\u8bd5\u5668\" \/><\/div>\n<h3>\u603b\u7ed3<\/h3>\n<p>Python\u4e2d\u7684<code>breakpoint()<\/code>\u51fd\u6570\u662fPython\u8c03\u8bd5\u529f\u80fd\u7684\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u8865\u5145\u3002\u5efa\u8bae\u5728\u8c03\u8bd5\u65f6\u4f7f\u7528\u5b83\uff0c\u4ee5\u4fbf\u80fd\u591f\u8f7b\u677e\u5730\u52a8\u6001\u6302\u63a5\u5176\u4ed6\u7b2c\u4e09\u65b9\u8c03\u8bd5\u5668\u3002\u5b83\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u9009\u9879\u6765\u7981\u7528\u8c03\u8bd5\u5668\u5e76\u6b63\u5e38\u8fd0\u884c\u7a0b\u5e8f\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u5728\u6211\u4eec\u7684<a href=\"https:\/\/github.com\/your-github-repo\">GitHub\u5b58\u50a8\u5e93<\/a>\u4e2d\u67e5\u770b\u66f4\u591aPython\u793a\u4f8b\u3002<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/docs.python.org\/3\/library\/functions.html#breakpoint\">Python\u5b98\u65b9\u6587\u6863<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u65ad\u70b9()\uff1aPython 3.7\u8c03\u8bd5\u65b0\u7279\u6027\u8be6\u89e3 Python 3.7\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u5185\u7f6e\u51fd\u6570\uff1abrea [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[861,280,859,862,860],"class_list":{"0":"post-225","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"tag-breakpoint","8":"tag-python","10":"tag-862","11":"tag-860"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u6df1\u5165\u5b66\u4e60Python\u5185\u7f6e\u51fd\u6570`breakpoint()`\uff0c\u638c\u63e1\u5176\u7528\u6cd5\u548c\u9ad8\u7ea7\u6280\u5de7\uff0c\u52a9\u4f60\u9ad8\u6548\u5b9a\u4f4d\u548c\u89e3\u51b3\u4ee3\u7801\u4e2d\u7684bug\u3002\u63d0\u5347Python\u8c03\u8bd5\u80fd\u529b\uff0c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/python\u65ad\u70b9\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801\" \/>\n<meta property=\"og:description\" content=\"\u6df1\u5165\u5b66\u4e60Python\u5185\u7f6e\u51fd\u6570`breakpoint()`\uff0c\u638c\u63e1\u5176\u7528\u6cd5\u548c\u9ad8\u7ea7\u6280\u5de7\uff0c\u52a9\u4f60\u9ad8\u6548\u5b9a\u4f4d\u548c\u89e3\u51b3\u4ee3\u7801\u4e2d\u7684bug\u3002\u63d0\u5347Python\u8c03\u8bd5\u80fd\u529b\uff0c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/python\u65ad\u70b9\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-05T20:41:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T18:36:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647968a4b2f92e6c72b354\/6-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/\",\"name\":\"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-04-05T20:41:25+00:00\",\"dateModified\":\"2025-07-31T18:36:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"description\":\"\u6df1\u5165\u5b66\u4e60Python\u5185\u7f6e\u51fd\u6570`breakpoint()`\uff0c\u638c\u63e1\u5176\u7528\u6cd5\u548c\u9ad8\u7ea7\u6280\u5de7\uff0c\u52a9\u4f60\u9ad8\u6548\u5b9a\u4f4d\u548c\u89e3\u51b3\u4ee3\u7801\u4e2d\u7684bug\u3002\u63d0\u5347Python\u8c03\u8bd5\u80fd\u529b\uff0c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801 - Blog - Silicon Cloud","description":"\u6df1\u5165\u5b66\u4e60Python\u5185\u7f6e\u51fd\u6570`breakpoint()`\uff0c\u638c\u63e1\u5176\u7528\u6cd5\u548c\u9ad8\u7ea7\u6280\u5de7\uff0c\u52a9\u4f60\u9ad8\u6548\u5b9a\u4f4d\u548c\u89e3\u51b3\u4ee3\u7801\u4e2d\u7684bug\u3002\u63d0\u5347Python\u8c03\u8bd5\u80fd\u529b\uff0c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/python\u65ad\u70b9\/","og_locale":"zh_CN","og_type":"article","og_title":"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801","og_description":"\u6df1\u5165\u5b66\u4e60Python\u5185\u7f6e\u51fd\u6570`breakpoint()`\uff0c\u638c\u63e1\u5176\u7528\u6cd5\u548c\u9ad8\u7ea7\u6280\u5de7\uff0c\u52a9\u4f60\u9ad8\u6548\u5b9a\u4f4d\u548c\u89e3\u51b3\u4ee3\u7801\u4e2d\u7684bug\u3002\u63d0\u5347Python\u8c03\u8bd5\u80fd\u529b\uff0c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/python\u65ad\u70b9\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-04-05T20:41:25+00:00","article_modified_time":"2025-07-31T18:36:36+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65647968a4b2f92e6c72b354\/6-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/","name":"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-04-05T20:41:25+00:00","dateModified":"2025-07-31T18:36:36+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"description":"\u6df1\u5165\u5b66\u4e60Python\u5185\u7f6e\u51fd\u6570`breakpoint()`\uff0c\u638c\u63e1\u5176\u7528\u6cd5\u548c\u9ad8\u7ea7\u6280\u5de7\uff0c\u52a9\u4f60\u9ad8\u6548\u5b9a\u4f4d\u548c\u89e3\u51b3\u4ee3\u7801\u4e2d\u7684bug\u3002\u63d0\u5347Python\u8c03\u8bd5\u80fd\u529b\uff0c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u8c03\u8bd5\u6280\u5de7\uff1a\u638c\u63e1\u65ad\u70b9(breakpoint())\u9ad8\u6548\u8c03\u8bd5\u4ee3\u7801"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/python%e6%96%ad%e7%82%b9\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=225"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":109705,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/225\/revisions\/109705"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}