2010-03-01 12 views
2

我正在學習Flex命令行調試器,而且我一直無法找到關於這個特定用例的信息。在Adobe的FDB的給定行號處設置斷點?

我想添加一個斷點到我的一個類文件中的特定行。我可以在類的某個函數的開始處添加斷點,但我無法弄清楚如何將它設置在特定行(例如Foo.as中的第117行)?

當我嘗試設置一個給定線文件,我得到一個在不同的位置:

(FDB)打破美孚111

斷點1在0X #### ##:文件Foo.as,線115

我驗證過線#我指定是有效的,所以我不認爲 FDB正試圖彌補。

我做錯了什麼?這在FDB中可能嗎?

回答

1

Abso-lutely,

檢查在fdb的幫助,這是相當有用的:)。只需輸入help或輸入help,然後輸入命令即可。幫助中斷給出了下面的輸出,很多很好的方法掛鉤在那裏,你使用的語法只是在類和指定的行號之間缺少一個冒號,只是用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.