FlexBuilder 调试器:“表达式”可以做什么?选项卡有什么用?

发布于 2024-09-05 05:45:48 字数 360 浏览 2 评论 0原文

正如标题所示,FlexBuilder“表达式”选项卡上有任何文档吗?它可以接受哪些表达式?

据我所知,它可以显示变量的值,但就是这样:比较、函数和方法调用都失败:

替代文本 http://img.skitch.com/20100614-t1gpdbrn1qnwy2eqr3gnw54d1d.png

编辑:这是特定于 FB3 — Flex Builder 的。显然 FB4(Flash Builder)稍微不那么无能。

As the title suggests, is there any documentation on the FlexBuilder "expressions" tab, and what expressions it can accept?

As far as I can tell, it can show the value of variables, but that's it: comparisons, function and method calls all fail:

alt text http://img.skitch.com/20100614-t1gpdbrn1qnwy2eqr3gnw54d1d.png

Edit: this is specific to FB3 — Flex Builder. Apparently FB4 — Flash Builder — is slightly less incompetent.

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

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

发布评论

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

评论(2

留蓝 2024-09-12 05:45:49

这取决于您使用的是 FlexBuilder 3 还是 FlashBuilder 4。FB 3 的表达式功能少得可怜。您基本上可以访问变量及其成员属性,句号。并且并不总是所有的成员属性。

FB 4 使您能够评估真实表达式,例如

getStyle("vertical-align")
getStyle("vertical-align") + "foo" 
parseInt(getStyle("padding-left"))

等。

It depends if you're using FlexBuilder 3 or FlashBuilder 4. FB 3 has pitiful expressions capability. You can basically access variables and their member properties, period. And not always all the member properties.

FB 4 gives you the ability to evaluate real expressions, like

getStyle("vertical-align")
getStyle("vertical-align") + "foo" 
parseInt(getStyle("padding-left"))

etc.

谈场末日恋爱 2024-09-12 05:45:49

它显示变量的值以及调试器中当前断点处的表达式结果。

例如:

public function testMethod():void {
   var a:String;  // <-- Set breakpoint here
   a = "Hello";
   a = "World";
}
public function testMethodB():void {
   var b:String = "Another String";
}

您可以为 a 创建一个表达式并观察值随时间的变化。

但是,变量必须在上下文中具有值。例如,在指示的位置设置断点并为 b 定义表达式将显示错误。

It shows the values of variables, and the results of expressions as at the current breakpoint in the debugger.

eg:

public function testMethod():void {
   var a:String;  // <-- Set breakpoint here
   a = "Hello";
   a = "World";
}
public function testMethodB():void {
   var b:String = "Another String";
}

You can create an expression for a and watch the value change over time.

However, the variable must have a value within the context. For example, setting the breakpoint where indicated, and defining an expresssion for b would show an error.

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