Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/debug
common/debug-service
DebugChannel
Interface DebugChannel
A closeable channel to send debug protocol messages over with error/close handling
interface
DebugChannel
{
close
()
:
void
;
onClose
(
cb
:
(
code
:
number
,
reason
:
string
)
=>
void
)
:
void
;
onError
(
cb
:
(
reason
:
unknown
)
=>
void
)
:
void
;
onMessage
(
cb
:
(
message
:
string
)
=>
void
)
:
void
;
send
(
content
:
string
)
:
void
;
}
Implemented by
ForwardingDebugChannel
PluginChannel
Index
Methods
close
on
Close
on
Error
on
Message
send
Methods
close
close
()
:
void
Returns
void
on
Close
onClose
(
cb
:
(
code
:
number
,
reason
:
string
)
=>
void
)
:
void
Parameters
cb
:
(
code
:
number
,
reason
:
string
)
=>
void
Returns
void
on
Error
onError
(
cb
:
(
reason
:
unknown
)
=>
void
)
:
void
Parameters
cb
:
(
reason
:
unknown
)
=>
void
Returns
void
on
Message
onMessage
(
cb
:
(
message
:
string
)
=>
void
)
:
void
Parameters
cb
:
(
message
:
string
)
=>
void
Returns
void
send
send
(
content
:
string
)
:
void
Parameters
content
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
close
on
Close
on
Error
on
Message
send
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...
A closeable channel to send debug protocol messages over with error/close handling