openhab-vscode icon indicating copy to clipboard operation
openhab-vscode copied to clipboard

Internal Debugging - Event injection for development and testing

Open ThomDietrich opened this issue 8 years ago • 3 comments

With a connection to the REST API as mentioned in #7 we could next also inject events from within the IDE. This way we could for example simulate the update of an item to e.g. test/debug a rule or sitemap.

I did not yet read up on the extension interfaces of VS Code. Maybe hover actions or a dynamic extension of the context menu is possible for certain elements.

ThomDietrich avatar Jun 19 '17 09:06 ThomDietrich

For the reference: https://code.visualstudio.com/docs/extensions/example-debuggers https://github.com/Microsoft/vscode-mock-debug

Maybe hover actions or a dynamic extension of the context menu is possible for certain elements.

Certainly! I'm actually working on Hover context for things/bindings at the moment. It's not related to a debugger/event injection though.

kubawolanin avatar Jun 26 '17 14:06 kubawolanin

@sjka just out of the blue :) How feasible it would be to expose a Xtend debugger server-side? Would that kind of feature even make sense on VSCode? See these docs for details.

Cheers

kubawolanin avatar Oct 18 '17 13:10 kubawolanin

Frankly said: no idea (yet). But from a bit of digging around it doesn't look like Xtext has some support implemented for this protocol.

sjsf avatar Oct 19 '17 11:10 sjsf