如何调试 Rhodes 应用程序

发布于 2024-12-25 06:20:33 字数 198 浏览 6 评论 0原文

我最近收养了罗兹&我想知道如何调试罗德应用程序。例如,在 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 技术交流群。

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

发布评论

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

评论(1

〃温暖了心ぐ 2025-01-01 06:20:33

使用 RhoStudio(构建于 Eclipse 之上),您可以设置断点并逐步执行 Ruby 控制器和模型 (

要查看数据库结构,您可以访问文件系统并获取数据库的路径,并将 SQLite 数据库保存在 Web 服务或其他方式中(也许保存到 SD 卡?)在你的Firefox插件中查看,下面是如何获取数据库路径的示例。

db_path = Rho::RhoFSConnector::get_db_fullpathname('app')   # can be app, user, or local

编辑

或者,如果您从 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.

db_path = Rho::RhoFSConnector::get_db_fullpathname('app')   # can be app, user, or local

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

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