1.0.1 • Published 3 years ago

nv-cli-inspector-prot v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

nv-cli-inspector-prot

  • cli tool, search dev-protocol

install

  • npm install nv-cli-inspector-prot -g

usage

    Usage: nv_inspector_prot [options]
    Options:
        -j, --js             search in js
        -b, --browser        search in browser
        -a, --all            search in both js and browser
        -c, --command        command match string
        -t, --type           type match string
        -e, --event          event match string
        -d, --domain         domain match string
        -D, --Domain         list Domain names
        -T, --Type           list Type names
        -C, --Comment        list Command names
        -E, --Event          list Event names
        -h, --help           usage
 


    

example

list

 @# nv_inspector_prot -C
 [
   'Console.clearMessages',
   'Console.disable',
   'Console.enable',
   'Debugger.continueToLocation',
   'Debugger.disable',
   'Debugger.enable',
   'Debugger.evaluateOnCallFrame',
   'Debugger.getPossibleBreakpoints',
   'Debugger.getScriptSource',
   'Debugger.getWasmBytecode',
   'Debugger.getStackTrace',
   'Debugger.pause',
   'Debugger.pauseOnAsyncCall',
   'Debugger.removeBreakpoint',
   'Debugger.restartFrame',
   'Debugger.resume',
   'Debugger.searchInContent',
   'Debugger.setAsyncCallStackDepth',
   'Debugger.setBlackboxPatterns',
   'Debugger.setBlackboxedRanges',
   'Debugger.setBreakpoint',
   'Debugger.setInstrumentationBreakpoint',
   'Debugger.setBreakpointByUrl',
   'Debugger.setBreakpointOnFunctionCall',
   'Debugger.setBreakpointsActive',
   'Debugger.setPauseOnExceptions',
   'Debugger.setReturnValue',
   'Debugger.setScriptSource',
   'Debugger.setSkipAllPauses',
   'Debugger.setVariableValue',
   'Debugger.stepInto',
   'Debugger.stepOut',
   'Debugger.stepOver',
   'HeapProfiler.addInspectedHeapObject',
   'HeapProfiler.collectGarbage',
   'HeapProfiler.disable',
   'HeapProfiler.enable',
   'HeapProfiler.getHeapObjectId',
   'HeapProfiler.getObjectByHeapObjectId',
   'HeapProfiler.getSamplingProfile',
   'HeapProfiler.startSampling',
   'HeapProfiler.startTrackingHeapObjects',
   'HeapProfiler.stopSampling',
   'HeapProfiler.stopTrackingHeapObjects',
   'HeapProfiler.takeHeapSnapshot',
   'Profiler.disable',
   'Profiler.enable',
   'Profiler.getBestEffortCoverage',
   'Profiler.setSamplingInterval',
   'Profiler.start',
   'Profiler.startPreciseCoverage',
   'Profiler.startTypeProfile',
   'Profiler.stop',
   'Profiler.stopPreciseCoverage',
   'Profiler.stopTypeProfile',
   'Profiler.takePreciseCoverage',
   'Profiler.takeTypeProfile',
   'Profiler.enableCounters',
   'Profiler.disableCounters',
   'Profiler.getCounters',
   'Profiler.enableRuntimeCallStats',
   'Profiler.disableRuntimeCallStats',
   'Profiler.getRuntimeCallStats',
   'Runtime.awaitPromise',
   'Runtime.callFunctionOn',
   'Runtime.compileScript',
   'Runtime.disable',
   'Runtime.discardConsoleEntries',
   'Runtime.enable',
   'Runtime.evaluate',
   'Runtime.getIsolateId',
   'Runtime.getHeapUsage',
   'Runtime.getProperties',
   'Runtime.globalLexicalScopeNames',
   'Runtime.queryObjects',
   'Runtime.releaseObject',
   'Runtime.releaseObjectGroup',
   'Runtime.runIfWaitingForDebugger',
   'Runtime.runScript',
   'Runtime.setAsyncCallStackDepth',
   'Runtime.setCustomObjectFormatterEnabled',
   'Runtime.setMaxCallStackSizeToCapture',
   'Runtime.terminateExecution',
   'Runtime.addBinding',
   'Runtime.removeBinding',
   'Schema.getDomains'
 ]

search

    @# nv_inspector_prot -c "set"
    [
      'Debugger.setAsyncCallStackDepth',
      'Debugger.setBlackboxPatterns',
      'Debugger.setBlackboxedRanges',
      'Debugger.setBreakpoint',
      'Debugger.setInstrumentationBreakpoint',
      'Debugger.setBreakpointByUrl',
      'Debugger.setBreakpointOnFunctionCall',
      'Debugger.setBreakpointsActive',
      'Debugger.setPauseOnExceptions',
      'Debugger.setReturnValue',
      'Debugger.setScriptSource',
      'Debugger.setSkipAllPauses',
      'Debugger.setVariableValue',
      'Profiler.setSamplingInterval',
      'Runtime.setAsyncCallStackDepth',
      'Runtime.setCustomObjectFormatterEnabled',
      'Runtime.setMaxCallStackSizeToCapture'
    ]



    @# nv_inspector_prot -c runtime set
    [
      'Runtime.setAsyncCallStackDepth',
      'Runtime.setCustomObjectFormatterEnabled',
      'Runtime.setMaxCallStackSizeToCapture'
    ]
    @#

    @# nv_inspector_prot -c runtime setasync
    [ 'Runtime.setAsyncCallStackDepth' ]
    @#

json

    @# nv_inspector_prot  -c Runtime.setAsyncCallStackDepth
    {
      name: 'setAsyncCallStackDepth',
      description: 'Enables or disables async call stacks tracking.',
      redirect: 'Debugger',
      parameters: [
        {
          name: 'maxDepth',
          description: 'Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async\n' +
            'call stacks (default).',
          type: 'integer'
        }
      ]
    }
    @#

LICENSE

  • ISC