| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,11 +12,11 @@ It can be accessed using: | |||
| 12 | 12 | const inspector = require('inspector'); | |
| 13 | 13 | ``` | |
| 14 | 14 | ||
| 15 | - ## inspector.close() | ||
| 15 | + ## `inspector.close()` | ||
| 16 | 16 | ||
| 17 | 17 | Deactivate the inspector. Blocks until there are no active connections. | |
| 18 | 18 | ||
| 19 | - ## inspector.console | ||
| 19 | + ## `inspector.console` | ||
| 20 | 20 | ||
| 21 | 21 | * {Object} An object to send messages to the remote inspector console. | |
| 22 | 22 | ||
@@ -27,7 +27,7 @@ require('inspector').console.log('a message'); | |||
| 27 | 27 | The inspector console does not have API parity with Node.js | |
| 28 | 28 | console. | |
| 29 | 29 | ||
| 30 | - ## inspector.open(\[port\[, host\[, wait\]\]\]) | ||
| 30 | + ## `inspector.open([port[, host[, wait]]])` | ||
| 31 | 31 | ||
| 32 | 32 | * `port` {number} Port to listen on for inspector connections. Optional. | |
| 33 | 33 | **Default:** what was specified on the CLI. | |
@@ -46,13 +46,13 @@ and flow control has been passed to the debugger client. | |||
| 46 | 46 | See the [security warning](cli.html#inspector_security) regarding the `host` | |
| 47 | 47 | parameter usage. | |
| 48 | 48 | ||
| 49 | - ## inspector.url() | ||
| 49 | + ## `inspector.url()` | ||
| 50 | 50 | ||
| 51 | 51 | * Returns: {string|undefined} | |
| 52 | 52 | ||
| 53 | 53 | Return the URL of the active inspector, or `undefined` if there is none. | |
| 54 | 54 | ||
| 55 | - ## inspector.waitForDebugger() | ||
| 55 | + ## `inspector.waitForDebugger()` | ||
| 56 | 56 | <!-- YAML | |
| 57 | 57 | added: v12.7.0 | |
| 58 | 58 | --> | |
@@ -62,14 +62,14 @@ Blocks until a client (existing or connected later) has sent | |||
| 62 | 62 | ||
| 63 | 63 | An exception will be thrown if there is no active inspector. | |
| 64 | 64 | ||
| 65 | - ## Class: inspector.Session | ||
| 65 | + ## Class: `inspector.Session` | ||
| 66 | 66 | ||
| 67 | 67 | * Extends: {EventEmitter} | |
| 68 | 68 | ||
| 69 | 69 | The `inspector.Session` is used for dispatching messages to the V8 inspector | |
| 70 | 70 | back-end and receiving message responses and notifications. | |
| 71 | 71 | ||
| 72 | - ### Constructor: new inspector.Session() | ||
| 72 | + ### Constructor: `new inspector.Session()` | ||
| 73 | 73 | <!-- YAML | |
| 74 | 74 | added: v8.0.0 | |
| 75 | 75 | --> | |
@@ -78,7 +78,7 @@ Create a new instance of the `inspector.Session` class. The inspector session | |||
| 78 | 78 | needs to be connected through [`session.connect()`][] before the messages | |
| 79 | 79 | can be dispatched to the inspector backend. | |
| 80 | 80 | ||
| 81 | - ### Event: 'inspectorNotification' | ||
| 81 | + ### Event: `'inspectorNotification'` | ||
| 82 | 82 | <!-- YAML | |
| 83 | 83 | added: v8.0.0 | |
| 84 | 84 | --> | |
@@ -95,7 +95,7 @@ session.on('inspectorNotification', (message) => console.log(message.method)); | |||
| 95 | 95 | ||
| 96 | 96 | It is also possible to subscribe only to notifications with specific method: | |
| 97 | 97 | ||
| 98 | - ### Event: <inspector-protocol-method> | ||
| 98 | + ### Event: `<inspector-protocol-method>`; | ||
| 99 | 99 | <!-- YAML | |
| 100 | 100 | added: v8.0.0 | |
| 101 | 101 | --> | |
@@ -116,22 +116,22 @@ session.on('Debugger.paused', ({ params }) => { | |||
| 116 | 116 | // [ '/the/file/that/has/the/breakpoint.js:11:0' ] | |
| 117 | 117 | ``` | |
| 118 | 118 | ||
| 119 | - ### session.connect() | ||
| 119 | + ### `session.connect()` | ||
| 120 | 120 | <!-- YAML | |
| 121 | 121 | added: v8.0.0 | |
| 122 | 122 | --> | |
| 123 | 123 | ||
| 124 | 124 | Connects a session to the inspector back-end. | |
| 125 | 125 | ||
| 126 | - ### session.connectToMainThread() | ||
| 126 | + ### `session.connectToMainThread()` | ||
| 127 | 127 | <!-- YAML | |
| 128 | 128 | added: v12.11.0 | |
| 129 | 129 | --> | |
| 130 | 130 | ||
| 131 | 131 | Connects a session to the main thread inspector back-end. An exception will | |
| 132 | 132 | be thrown if this API was not called on a Worker thread. | |
| 133 | 133 | ||
| 134 | - ### session.disconnect() | ||
| 134 | + ### `session.disconnect()` | ||
| 135 | 135 | <!-- YAML | |
| 136 | 136 | added: v8.0.0 | |
| 137 | 137 | --> | |
@@ -141,7 +141,7 @@ with an error. [`session.connect()`][] will need to be called to be able to send | |||
| 141 | 141 | messages again. Reconnected session will lose all inspector state, such as | |
| 142 | 142 | enabled agents or configured breakpoints. | |
| 143 | 143 | ||
| 144 | - ### session.post(method\[, params\]\[, callback\]) | ||
| 144 | + ### `session.post(method[, params][, callback])` | ||
| 145 | 145 | <!-- YAML | |
| 146 | 146 | added: v8.0.0 | |
| 147 | 147 | --> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments