diff --git a/pages/common/caller.md b/pages/common/caller.md new file mode 100644 index 0000000000..15936eee9f --- /dev/null +++ b/pages/common/caller.md @@ -0,0 +1,16 @@ +# caller + +> Print function context. +> More information: . + +- Print the line and filename where the current function was called: + +`caller` + +- Print the line, function and filename where the current function was called: + +`caller 0` + +- Print the line, the function name and the filename of a function call `n` frames back: + +`caller {{n}}`