@@ -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,7 +46,7 @@ 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
@@ -67,7 +67,7 @@ $ node -p 'inspector.url()'
67
67
undefined
68
68
```
69
69
70
- ## inspector.waitForDebugger()
70
+ ## ` inspector.waitForDebugger() `
71
71
<!-- YAML
72
72
added: v12.7.0
73
73
-->
@@ -77,14 +77,14 @@ Blocks until a client (existing or connected later) has sent
77
77
78
78
An exception will be thrown if there is no active inspector.
79
79
80
- ## Class: inspector.Session
80
+ ## Class: ` inspector.Session `
81
81
82
82
* Extends: {EventEmitter}
83
83
84
84
The ` inspector.Session ` is used for dispatching messages to the V8 inspector
85
85
back-end and receiving message responses and notifications.
86
86
87
- ### Constructor: new inspector.Session()
87
+ ### Constructor: ` new inspector.Session() `
88
88
<!-- YAML
89
89
added: v8.0.0
90
90
-->
@@ -93,7 +93,7 @@ Create a new instance of the `inspector.Session` class. The inspector session
93
93
needs to be connected through [ ` session.connect() ` ] [ ] before the messages
94
94
can be dispatched to the inspector backend.
95
95
96
- ### Event: 'inspectorNotification'
96
+ ### Event: ` 'inspectorNotification' `
97
97
<!-- YAML
98
98
added: v8.0.0
99
99
-->
@@ -110,7 +110,7 @@ session.on('inspectorNotification', (message) => console.log(message.method));
110
110
111
111
It is also possible to subscribe only to notifications with specific method:
112
112
113
- ### Event: & lt ; inspector-protocol-method& gt ;
113
+ ### Event: ` < inspector-protocol-method> ` ;
114
114
<!-- YAML
115
115
added: v8.0.0
116
116
-->
@@ -131,22 +131,22 @@ session.on('Debugger.paused', ({ params }) => {
131
131
// [ '/the/file/that/has/the/breakpoint.js:11:0' ]
132
132
```
133
133
134
- ### session.connect()
134
+ ### ` session.connect() `
135
135
<!-- YAML
136
136
added: v8.0.0
137
137
-->
138
138
139
139
Connects a session to the inspector back-end.
140
140
141
- ### session.connectToMainThread()
141
+ ### ` session.connectToMainThread() `
142
142
<!-- YAML
143
143
added: v12.11.0
144
144
-->
145
145
146
146
Connects a session to the main thread inspector back-end. An exception will
147
147
be thrown if this API was not called on a Worker thread.
148
148
149
- ### session.disconnect()
149
+ ### ` session.disconnect() `
150
150
<!-- YAML
151
151
added: v8.0.0
152
152
-->
@@ -156,7 +156,7 @@ with an error. [`session.connect()`][] will need to be called to be able to send
156
156
messages again. Reconnected session will lose all inspector state, such as
157
157
enabled agents or configured breakpoints.
158
158
159
- ### session.post(method\ [ , params\]\ [ , callback\] )
159
+ ### ` session.post(method[, params] [, callback]) `
160
160
<!-- YAML
161
161
added: v8.0.0
162
162
-->
0 commit comments