在Adobe的FDB中为给定的行号设置断点?

时间:2010-03-01 23:44:25

标签: flex debugging air fdb

我正在学习Flex命令行调试器,但我无法找到有关此特定用例的信息。

我想在我的一个类文件中的特定行添加断点。我可以在类的函数的 start 中添加断点,但我无法弄清楚如何在特定行设置它(例如Foo.as中的第117行)?

当我尝试为给定行上的文件设置一个时,我在另一个位置得到一个:

  

(fdb)打破Foo 111

     

断点1位于0x ######:文件Foo.as,第115行

我已经验证了#I指定的行是有效的,所以我认为 FDB正在尝试补偿。

我做错了吗?这可能在FDB中吗?

1 个答案:

答案 0 :(得分:1)

ABSO-lutely,

查看fdb中的帮助,这非常有用:)。只需键入help或键入help然后输入命令即可。 help break给出了下面的输出,很多很好的方法可以在那里挂钩,你使用的语法只是在类和指定的行号之间缺少一个冒号,只是尝试使用MXML文件并且它工作正常。

Set breakpoint at specified line or function.
Examples:
  break 87
    Sets a breakpoint at line 87 of the current file.
  break myapp.mxml:56
    Sets a breakpoint at line 56 of myapp.mxml.
  break #3:29
    Sets a breakpoint at line 29 of file #3.
  break doThis
    Sets a breakpoint at function doThis() in the current file.
  break myapp.mxml:doThat
    Sets a breakpoint at function doThat() in file myapp.mxml.
  break #3:doOther
    Sets a breakpoint at function doOther() in file #3.
  break
   Sets a breakpoint at the current execution address in the
   current stack frame. This is useful for breaking on return
   to a stack frame.
To see file names and numbers, do 'info sources' or 'info files'.
To see function names, do 'info functions'.
Abbreviated file names and function names are accepted if unambiguous.
If line number is specified, break at start of code for that line.
If function is specified, break at start of code for that function.
See 'commands' and 'condition' for further breakpoint control.
相关问题