capability detection

21 views
Skip to first unread message

Devon Carew

unread,
Oct 19, 2015, 2:22:35 PM10/19/15
to observato...@dartlang.org
Hey, a bit of a question about capability detection. My debugger client is subscribing to stdio streams from debug targets. This is via streamListen('Stdout') and streamListen('Stderr'). Some targets support these streams (the dart cli vm) and some don't (flutter).

I get back an error for the clients that don't support it:

{"jsonrpc":"2.0","id":"4","error":{"code":-32602,"message":"Invalid params","data":{"details":"streamListen: invalid 'streamId' parameter: Stdout"}}}

which I can handle, and change to an "I won't get stdio" mode. Have you guys given any thought to adding capability detection to the protocol? Either an API that clients could query ("do you support x?"), or a map you could request or be sent at connect, that would enumerate all the optional but supports features of the debug target?

--
Devon Carew
Software Engineer
Google, Inc.

John Mccutchan

unread,
Oct 20, 2015, 11:00:46 AM10/20/15
to Devon Carew, observato...@dartlang.org
Hi,

Adding some reflection to the service protocol has been discussed regularly. It's low priority but something we'd like.

John

--
You received this message because you are subscribed to the Google Groups "Dart VM Observatory Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to observatory-dis...@dartlang.org.

Todd Turnidge

unread,
Oct 26, 2015, 12:54:57 PM10/26/15
to John Mccutchan, Devon Carew, observato...@dartlang.org
Maybe add a feature request for a "streamExists" rpc call?  Seems reasonable to me.
Reply all
Reply to author
Forward
0 new messages