This is annoying: In the plugin editor, context is said to have a function called reportToDebugger(), but referring to reportToDebugger throws an error.
The problem is that the docs have a typo. The function is reportDebugger(), as can be shown by pinging the keys of the context object.
Here are the actual key names of context:
Here is what the docs say:
Please to fix those docs, @bubble. (Documentation for context is shown when “show documentation” is clicked for function initialize.)
Snarky comment about nobody ever even trying this (really neat) feature deleted.