id: e887c1f162b7461f90ca84529f81f9dd
parent_id: 
item_type: 1
item_id: d5cf6bec18ee46ffb1013bf394cd0fbf
item_updated_time: 1764345476757
title_diff: "[{\"diffs\":[[1,\"使用 python IDLE 自带的 debuger 进行调试 - 一苇以航 - CSDN\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":45}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>使用 python IDLE 自带的 debuger 进行调试 - 一苇以航 - CSDN博客</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"8395\\\"></a>\\\r\\\n<h1>使用 python IDLE 自带的 debuger 进行调试 - 一苇以航 - CSDN博客</h1>\\\r\\\n\\\r\\\n<div>\\\n<span><div><br/></div><div style=\\\"font-size: 16px; min-width: 100%;\\\"><div style=\\\"font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"vertical-align: baseline; font-size: 16px; text-align: left;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px auto; padding: 0px 2em; border: 0px; font-size: inherit; vertical-align: baseline; z-index: 200; position: relative; width: 36em;\\\"><div style=\\\"margin: 0px 25px 0px -25px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px; padding: 0px 0px 9em; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"background-color: transparent; margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><h1 style=\\\"border: 0px; vertical-align: baseline; text-align: left; font-size: 35px; padding: 0px; margin: 0px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">使用 python IDLE 自带的 debuger 进行调试</span></h1><div style=\\\"padding: 1.5em 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: relative; height: 1em; text-align: center; margin: 0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);margin:0px;margin-bottom:0px;\\\"></div></div></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">2016年07月23日 13:36:52</span> <a href=\\\"https://me.csdn.net/bat67\\\" style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; font-family: &quot;PT Serif&quot;; line-height: 1.5em; color: rgb(6, 85, 136); text-decoration: none;\\\" target=\\\"_blank\\\">bat67</a> <span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">阅读数：14994</span></div></div><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">版权声明：(╯3╰) 转载请注明: https://blog.csdn.net/bat67/article/details/52003860</span></div><div style=\\\"margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">IDLE自带了调试器（虽然不怎么使吧）。</span></div><div style=\\\"background-color: transparent;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">关于如何在 IDLE 中进行调试网上的教程讲的很模糊，于是自己整理了一下，和大家分享~</span></div><h1 style=\\\"background-color: transparent; margin: 0px 0px 20px; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 35px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">第一步：打开python shell，并在shell中打开debuger</span></h1><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\"使用 python IDLE 自带的 debuger 进行调试 - 一苇以航 - CSDN_files/20160724212758167\\\" type=\\\"image/png\\\" data-filename=\\\"20160724212758167\\\" height=\\\"178\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"526\\\"/></span></div><h1 style=\\\"background-color: transparent; margin: 0px 0px 20px; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 35px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">第二步：从该shell中打开想要调试的.py文件，选中某行，右键设置断点</span></h1><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\"使用 python IDLE 自带的 debuger 进行调试 - 一苇以航 - CSDN_files/20160724212811901\\\" type=\\\"image/png\\\" data-filename=\\\"20160724212811901\\\" height=\\\"177\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"380\\\"/></span></div><h1 style=\\\"background-color: transparent; margin: 0px 0px 20px; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 35px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">第三步：运行 .py 文件</span></h1><div style=\\\"background-color: transparent; margin: 1em 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\"><img src=\\\"使用 python IDLE 自带的 debuger 进行调试 - 一苇以航 - CSDN_files/20160724212825090\\\" type=\\\"image/png\\\" data-filename=\\\"20160724212825090\\\" height=\\\"168\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"334\\\"/></span></div><div style=\\\"background-color: transparent;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">接下来就可以愉快的进行调试了~</span></div><div style=\\\"margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em; background-color: rgb(255, 250, 165);-evernote-highlight:true;\\\">注意： py文件需要运行在与已经打开了 debuger 的shell 中，如果是运行的时候又新打开了一个 shell，debuger将不能捕获到运行信息</span></div><h1 style=\\\"background-color: transparent; margin: 0px 0px 20px; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 35px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\">附注：</span></h1><div style=\\\"margin: 1em 0px 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; text-align: center;\\\"><h1 style=\\\"background-color: transparent; margin: 0px 0px 20px; padding: 0px; border: 0px; vertical-align: baseline; text-align: left; font-size: 35px;\\\"><span style=\\\"font-size: 35px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 35px; font-weight: normal;\\\"><img src=\\\"使用 python IDLE 自带的 debuger 进行调试 - 一苇以航 - CSDN_files/20160724212850465\\\" type=\\\"image/png\\\" data-filename=\\\"20160724212850465\\\" height=\\\"533\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;border-color:rgb(31, 9, 9);display:block;max-width:100%;\\\" width=\\\"576\\\"/></span></h1></div></div></div></div></div></div></div><div style=\\\"background-color: transparent; margin: 0px 0px 1.5em; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: absolute; top: -1000px; left: -1000px;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1.5em;\\\">Measure</span></div><div style=\\\"background-color: transparent; margin: 0px; padding: 0px; border: 0px; font-size: inherit; vertical-align: baseline; position: absolute; top: -1000px; left: -1000px;\\\"><span style=\\\"font-size: 16px; color: rgb(31, 9, 9); font-family: &quot;PT Serif&quot;; line-height: 1;\\\">Measure</span></div></div></div></div></div></div></div></div><div><br/></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":9325}]"
metadata_diff: {"new":{"id":"d5cf6bec18ee46ffb1013bf394cd0fbf","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345824171,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:18.774Z
created_time: 2025-11-28T16:20:18.774Z
type_: 13