Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский -
Scilabヘルプ >> Scilab > Debugging > where

where

カレントの命令の呼び出しツリーを得る

呼出し手順

[linenum, callername] = where()

引数

linenum

整数の列ベクトル

callername

文字列の列ベクトル

説明

[linenum, callername] = where()は, linenumおよび callername を返します. この際,関数 callername(1)linenum(1) 行目で カレントの命令がコールされ, 関数 callername(2)linenum(2) 行目で callername(1)がコールされ,..., を意味します.

callername(i) は一般には関数名ですが, 命令が exec ファイルまたは execstr 命令の中にある場合には, "exec" または "execstr" となる可能性もあります.

function foo()
         [a,b] = where()
         disp("Line:")
         disp(a);
         disp("Function:")
         disp(b);
endfunction

function bar()
         function beer()
                  foo()
         endfunction
         beer()
endfunction

bar()

参照

  • whereami — カレントの命令コールツリーを表示
  • pause — 中断モード, キーボード入力を待つ
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:35:20 CEST 2016