简体   繁体   English

如何从已删除的文件中删除PyDev调试器断点?

[英]How do I remove PyDev debugger breakpoints from deleted files?

Whenever I launch the debugger from PyDev it complaints about breakpoints on files that don't exists anymore: 每当我从PyDev启动调试器时,它都会抱怨不再存在的文件上的断点:

pydev debugger: warning: trying to add breakpoint to file that does not exist: (some file path).py (will have no effect)

There are about a dozen of these phantom breakpoints on files that no longer exist in my workspace. 在我的工作区中不再存在的文件中有大约十几个这些幻像断点。 Is there a way to suppress these or will I forever be saddled with these messages for removing files without removing their breakpoints first? 有没有办法压制这些或者我将永远背负这些消息来删除文件而不首先删除他们的断点?

The Debug perspective should give you access to a Breakpoints view (you can see its title bar in some of the screenshots in this tutorial ). Debug透视图应该允许您访问Breakpoints视图(您可以在本教程的一些屏幕截图中看到它的标题栏)。

This view should list all your breakpoints, even if they relate to deleted files, and allow you to disable or remove them. 此视图应列出所有断点,即使它们与已删除的文件相关,也允许您禁用或删除它们。

today I just encountered this problem and I figured out how to solved it. 今天我刚遇到这个问题,我想出了如何解决它。 Very simple, you just need to click Run -> Remove all breakpoints :) 很简单,你只需要点击Run - > Remove all breakpoints :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM