Skip to content

How to programmatically subscribe to custom Debug Adapter events? #652

Answered by jonahgraham
sebthom asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @sebthom - not sure what you have tried yet here, but my guess is you want to override createDebugTarget in LaunchDebugConfig. Have createDebugTarget return a specialization of DSPDebugTarget that implements a new interface extending IDebugProtocolClient.

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebthom
Comment options

sebthom May 30, 2023
Collaborator Author

Answer selected by sebthom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants