Debug API
Debug API
Importing Modules
import devtools from '@system.devtools'
API
command
Registers a function fn as a shell command named cmd. After registration, it can be called using the dev command on the device terminal. For example:
dev cmd arg1 arg2
will call the command named 'cmd', with the argument list ['arg1', 'arg2'].
