使用调试器

查看更多内容https://www.mindspore.cn/tutorial/training/zh-CN/r1.2/advanced_use/debugger.html