Blackberry Eclipse 调试器不反映代码更改

发布于 2024-10-08 06:14:34 字数 161 浏览 4 评论 0原文

过去一天我一直在为此苦苦挣扎。我似乎陷入了 Eclipse 中的一个奇怪的错误,它决定单步执行并执行我已完全删除或评论的部分。它还选择忽略我今天实际添加的所有说明。我尝试删除所有断点、清除 bin 目录、重置模拟器,但没有任何效果。

非常感谢任何帮助!

谢谢,
特贾。

I've been struggling with this for the past day. I seem to be stuck with a weird bug in Eclipse where it decides to step through and exec sections that I've entirely deleted or commented. It also chooses to ignore all the instructions that I've actually added today. I've tried removing all breakpoints, clearing my bin directory, resetting my emulator, but nothing works.

Any help is much appreciated!

Thanks,
Teja.

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

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

发布评论

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

评论(4

与君绝 2024-10-15 06:14:34

这取决于您正在调试的操作系统...
5.0 + sim可热插拔,菜单选项:Project-BlackBerry-Clean Simulator 实际上可以清理模拟器
您是否选中了“自动构建”?你应该(为此任何人)
如果您在运行时选择“调试”,它将

在 5.0 下构建并恢复到它停止的位置附近(如果在您的代码编辑后它仍然存在),您需要杀死旧的 sim,运行 clean.bat上面提到的并重新启动SIM卡

虽然在重新阅读您的帖子后,听起来更像是您的构建没有进入SIM卡,并且它正在执行您已经放置在其上的应用程序...运行SIM卡的clean.bat并再次检查...您确定构建成功了吗?

It depends on the OS you are debugging for...
5.0 + the sim is hot-swappable, and the menu option: Project-BlackBerry-Clean Simulator actually cleans the simulator
Do you have "Build Automatically" checked? You should (for this anywho)
if you select to Debug while it is running, it will build and resume near to the point it left off (if it still exists after your code edits anyway)

under 5.0, you need to kill the old sim, run the clean.bat as mentioned above and restart the sim

Although upon re-reading your post, sounds more like your build is not making it to the sim, and it is executing the app you already placed on it... Run the sim's clean.bat and check again... Are you sure you have a successful build?

〗斷ホ乔殘χμё〖 2024-10-15 06:14:34

我不知道这是否是您问题的解决方案,但这里有一些有用的提示:

1.如果您在启动调试器时对代码进行更改并保存它们,即在调试模式下启动 Eclipse(调试为。 ..) 调试器不会识别这些更改。您必须重新编译、重新打包,然后重新启动调试器。

2.对代码进行更改后,仅构建项目是不够的。您还必须选择项目,然后从项目菜单中选择 Blackberry->Package Projects。执行此操作后尝试启动调试器。

希望这有帮助。

I don't know if this is the solution to your problem but here are a few useful tips:

1.If you make changes to the code and save them while you have started the debugger i.e. have started Eclipse in Debug mode(Debug as...) the debugger won't recognize the changes. You have to recompile, repackage and then restart the debugger.

2.After making the changes to your code it isn't enough to just build the project. You also have to select the project and from the Project menu then Blackberry->Package Projects. After doing this try to start the debugger.

Hope this helps.

不再让梦枯萎 2024-10-15 06:14:34

如果您还没有这样做,请尝试清理您的模拟器。转到模拟器文件夹并使用 clean.bat 清理模拟器,这将删除您在模拟器上安装的所有应用程序。

try to clean your emulator if you haven't done this yet. Go to emulator folder and use clean.bat to clean the emulator this will remove all applications you installed on emulator.

挽手叙旧 2024-10-15 06:14:34

每当我对 BB 代码进行更改时,我都需要在 Eclipse 中进行干净的构建,听起来很愚蠢,但它对我有用。否则我会得到你描述的行为......

Whenever I make changes to the BB code I need to do a clean build in Eclipse, sounds silly but it works for me. Otherwise I get the behavior you describe...

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