日食 + Pydev 不会在外部库源断点上中断

发布于 2024-09-26 19:19:25 字数 552 浏览 7 评论 0原文

我有一个项目 (A),它引用了不同项目 (B) 中的代码。我通过将 B 添加到 A 中的外部库列表中来链接这两者。因此,PyDev PYTHONPATH 现在将源文件夹作为项目 A 的源,而外部库包含 B 的源路径。

我遇到的问题是 B 中设置的断点被忽略,并且代码不会在这些点处中断。为了澄清,断点列表显示了这些断点,我可以双击它们并转到目标文件。断点已启用(带复选标记的绿点),与这些外部断点和主项目中的断点没有任何不同。

我已经尝试了一切,除了完全重新安装 Eclipse:

  • 删除项目并重新导入
  • 删除并重新导入外部库项目
  • 清除所有断点并重试
  • 将我的配置与另一台机器进行比较

这非常相同的配置(据我所知告诉)在另一个开发人员的机器上工作没有任何问题。因此,看来我缺少一个配置,或者 Eclipse 中的某些内容已损坏,我需要重置。因此,任何有关将 Eclipse 重置为适当设置的建议都会有所帮助。

系统信息:OSX 10.6.4、Eclipse 3.6.1、PyDev 1.6.2.2010090812、Python 2.5

I've got a project (A) which references code in a different project (B). I've linked the two by adding B into the External Libraries list in A. So PyDev PYTHONPATH now has Source Folders as project A's source, and External Libraries contains B's source path.

The problem I'm having is that breakpoints set in B are ignored, and the code does not break at these points. To clarify, the Breakpoints list shows these breakpoints, and I'm able to double click on them and go to the target file. The breakpoint is enabled (green dot with a checkmark) and there's nothing different from these external breakpoints and breakpoints in the main project.

I've tried everything except completely re-installing Eclipse:

  • Delete projects and re-import
  • Remove and re-import the external library project
  • Clear all breakpoints and re-try
  • Compare my configuration against another machine

This very same configuration (as far as i can tell) works on another developer's machine without any problems. So it appears that there's a configuration I'm missing, or something in Eclipse is corrupt that I need to reset. So any suggestion about resetting Eclipse to the appropriate settings would be helpful.

Sysinfo: OSX 10.6.4, Eclipse 3.6.1, PyDev 1.6.2.2010090812, Python 2.5

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

别再吹冷风 2024-10-03 19:19:28

这是一个已知问题。

在外部库实际加载之前,您无法设置断点,因此您需要首先在主源代码调用库的位置处设置断点。现在,您可以在库代码本身中设置或启用断点。

This is a known issue.

You cannot set a break-point until the external library has actually been loaded, so you need to first set a breakpoint in the main source at a point where it has called into the library. Now at this point you can set or enable the breakpoints in the library code itself.

迎风吟唱 2024-10-03 19:19:28

我想我遇到了同样的问题:[http://stackoverflow.com/questions/9486871/pydev-breakpoints-not-working][1]

还没有解决方案。我实际上可以进入断点不起作用的方法,在下面的几行中设置断点,但它仍然会被忽略。 Aptana 没有为我解决问题。

I think i have run into the same problem: [http://stackoverflow.com/questions/9486871/pydev-breakpoints-not-working][1]

No solution yet. I could actuallu step into the methods where the breakpoints weren't working, set a breakpoint some lines below and still it would be ignored. Aptana did't solve the problem for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文