gpt4 book ai didi

titanium - 是否有用于在 Titanium 中进行调试的交互式控制台?

转载 作者:行者123 更新时间:2023-12-02 00:30:08 26 4
gpt4 key购买 nike

是否有用于 Titanium 的 rails console 之类的东西,我可以在那里玩一点 API?或者更好的调试器

或者您可以向我推荐一个不同的工作流程,而不必编辑源代码 > 编译 > Ti.API.debug() 吗?

我知道我可以在 Debug模式下启动模拟器并检查变量等,但我还没有找到一种方法来编写一些代码并对其进行评估,也许我错过了它。

感谢您的帮助!

最佳答案

appcelerator 团队的 Tony Lukasavage 回答了我 here

In Titanium Studio, open up the Expressions By doing the following: Window -> Show View -> Other -> Debug -> Expressions

This new view should open up in the same panel as your console. Now, when you are running the debugger on your app, you can use the Expressions panel to test and test execute code. Just click Add new expression and start typing what you want to be evaluated in the current execution context. You can do so at any breakpoint, or any section of code you step to after a breakpoint.

正如 Aaron 指出的那样,这与 Rails 控制台并不完全相同,但类似于 ruby​​-debug,总比没有好得多:)

关于titanium - 是否有用于在 Titanium 中进行调试的交互式控制台?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7347364/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com