如何调试 Rhodes 应用程序
我最近收养了罗兹&我想知道如何调试罗德应用程序。例如,在 Ruby 中,我们可以使用 irb 看到代码的逐行执行。此外,在 Rhodes 应用程序中创建模型后,我想查看数据库结构,因为我更喜欢使用 SQLite Manager 作为 Rails 应用程序的 Firefox 插件。
我需要真正了解模型在数据库中的外观以及属性的存储方式。
谢谢
I have adopted Rhodes recently & I was wondering how to debug a Rhodes application. For example in Ruby we can see the line-by-line execution of code using irb
. Also after creating the models in a Rhodes application, I want to see the database structure because I prefer to use the SQLite Manager as a Firefox plugin for my Rails apps.
I need to really see how the models look in the databases and how the attributes are stored.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 RhoStudio(构建于 Eclipse 之上),您可以设置断点并逐步执行 Ruby 控制器和模型 (源)
要查看数据库结构,您可以访问文件系统并获取数据库的路径,并将 SQLite 数据库保存在 Web 服务或其他方式中(也许保存到 SD 卡?)在你的Firefox插件中查看,下面是如何获取数据库路径的示例。
编辑
或者,如果您从 RhoStudio 中构建 RhoSimulator,则可以导航到 RhoSimulator 的“bin”目录并检查其中的 SQLite 文件。
/path/to/app/rhosimulator/db
Using RhoStudio (built on top of Eclipse), you can set breakpoints and step through the Ruby controllers and models (source)
To see the database structure, you can access the file system and get the database's path, and save the SQLite database off in a web service or some other means (maybe to the SD card?) to view in your Firefox plugin, the following being an example of how to get the path to the database.
EDIT
Or, if you build to RhoSimulator from within RhoStudio, you can navigate to the "bin" directory for RhoSimulator and inspect the SQLite files there.
/path/to/app/rhosimulator/db