How to programmatically subscribe to custom Debug Adapter events? #652
-
I am launching a debug adapter via DSPLaunchDelegateLaunchBuilder, see https://github.com/dart4e/dart4e/blob/6a925b7078089f9810cbedb22b819789e3e8bc63/plugin/src/main/java/org/dart4e/launch/program/ProgramLaunchConfigLauncher.java#L90-L98 Now I am trying to figure out how I can get notified of these custom debug adapter events https://github.com/dart-lang/sdk/blob/main/pkg/dds/tool/dap/README.md#custom-events Any help is greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sebthom - not sure what you have tried yet here, but my guess is you want to override That new interface can have methods sort of like this which get implemented in your new class: @JsonNotification("dart.log")
default void dartLog(String message) {
} Please ask follow up questions if the above isn't clear to what you expected. |
Beta Was this translation helpful? Give feedback.
Hi @sebthom - not sure what you have tried yet here, but my guess is you want to override
createDebugTarget
inLaunchDebugConfig
. HavecreateDebugTarget
return a specialization ofDSPDebugTarget
that implements a new interface extendingIDebugProtocolClient
.That new interface can have methods sort of like this which get implemented in your new class:
Please ask follow up questions if the above isn't clear to what you expected.