黑莓:设备上的高效调试?
我目前正在尝试在真实设备上调试黑莓应用程序。 我发现设置时间很可笑! 这是我的工作流程:
- 使用 Blackberry Desktop Manager (BBDM) 卸载应用程序
- 选择卸载应用程序的选项大约需要一分钟...
- BBDM 需要连接到设备并加载应用程序列表
- 您需要找到并取消选中该应用程序
- BBDM 大约需要 30 秒才能卸载应用程序及其子模块
- 黑莓 bold 9700 现在需要 2 分钟重新启动...
- 选择卸载应用程序的选项大约需要一分钟...
- 使用 eclipse开始调试
- eclipse 安装应用程序
- 等待调试器将自身附加到设备
- 手动启动应用
总而言之,单次调试运行可能需要 10 分钟以上才能执行。 如果我错过了一个断点,我就必须重新开始。
有没有办法优化此工作流程,使黑莓设备上的调试更加高效?
I am currently trying to debug a blackberry application on a real device.
I find the setup time to be ludicrous!
Here is my workflow:
- Uninstall the application using Blackberry Desktop Manager (BBDM)
- it takes about one minute to select the options to uninstall the app...
- BBDM needs to connect to the device and load the application list
- you need to find and uncheck the application
- BBDM takes about 30 seconds to uninstall the application and its submodules
- the blackberry bold 9700 now spends 2 minutes rebooting...
- it takes about one minute to select the options to uninstall the app...
- Use eclipse to start debugging
- eclipse installs the app
- wait for the debugger to attach itself to the device
- Start the app manually
All in all, a single debugging run can take more than 10 minutes to execute.
If I miss a breakpoint, I have to start all over again.
Is there a way to optimize this workflow to make debugging on a blackberry device more efficient ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您不需要卸载该应用程序。当您重新部署时,它只会用新版本替换以前的版本。不幸的是,它无法避免重新启动——这是你必须忍受的事情。好消息是,新设备的重启时间越来越短 - 我的 Torch 9800 完全启动只需要大约一分钟。
人们只能希望RIM能够带来“热插拔”功能 将模拟器移植到实际设备中。
You don't need to uninstall the application. When you redeploy, it will simply replace the previous version with the new one. Unfortunately it won't avoid the reboot - that's something you'll just have to live with. The good news is that reboot times are getting better on newer devices - it only takes about a minute for my Torch 9800 to fully boot up.
One can only hope that RIM will bring the "hot swap" capability of the simulators into the actual devices.
如果您不使用 Peristance 并且应用程序未运行,您可以将其删除,然后重新加载,而无需重新启动。
此外,您可以使用 eclipse sdk 附带的 javaloader.exe 文件,而不是使用应用程序管理器,该文件位于 sdk 的 bin 目录中来删除或加载 cods
示例 .bat 文件
我个人也使用 JDE 进行调试,因为它比 Eclipse 滞后得多,但这是个人选择。
If you do not use Peristance and the application is not running, you can remove it and then reload it without a reboot.
Furthermore, rather than using the application manager you can use the javaloader.exe file that comes with the eclipse sdk, its located in the bin dir of the sdk to remover or load the cods
Example .bat file
Also personally I debug with the JDE because it is much less laggy then eclipse, but that is a personal choice.
有一些技巧可以让 Eclipse 中的调试更加高效。
1.您必须创建假的空项目。
2.并开始调试它而不是你的真实项目。
3.连接调试器后,您可以在设备上运行实际应用程序并进行调试,而无需重新启动。
There is some trick to make debugging more efficient in eclipse.
1.You must create fake empty project.
2.And start debugging for it instead of your real project.
3.When debugger has attached, you can run real application on device and debug it without rebooting.
我使用调试为-> Blackberry 设备在我的 Blackberry Torch 9800 上调试应用程序。大多数情况下都运行良好,尽管我承认黑莓中的调试速度不如 iPhone(快得多)或 Android(还好)。
I am using Debug as-> Blackberry Device to debug the application on my Blackberry Torch 9800. It is doing OK most of the times although I admit that debugging in blackberry is not as fast as in iPhone(much faster) or Android(just fine).