--- title: debug.getOption() function description: > `debug.getOption()` gets the value of an option using a form of reflection. menu: flux_v0_ref: name: debug.getOption parent: internal/debug identifier: internal/debug/getOption weight: 201 --- `debug.getOption()` gets the value of an option using a form of reflection. ##### Function type signature ```js (name: string, pkg: string) => A ``` {{% caption %}} For more information, see [Function type signatures](/flux/v0/function-type-signatures/). {{% /caption %}} ## Parameters ### pkg ({{< req >}}) Full path of the package. ### name ({{< req >}}) Option name.