Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider open sourcing JSProvider.dll #110

Open
glenrgordon opened this issue May 27, 2024 · 5 comments
Open

Consider open sourcing JSProvider.dll #110

glenrgordon opened this issue May 27, 2024 · 5 comments

Comments

@glenrgordon
Copy link

I for one am interested in writing a Python provider and/or writing a JSProvider that uses the V8 engine. Both of these in pursuit of better understanding the exposed interfaces. Being able to see how things are done in the existing JSProvider would be of tremendous help and a productivity boost. The documentation is great, but it doesn't bring complex concepts together nearly as well as debugging through existing C++ code.

@lzybkr
Copy link
Member

lzybkr commented May 28, 2024

@wmessmer-msft started a Python provider a couple years ago, maybe he can share that?

We have a JSProvider built on V8 and it should be available very soon. You might already have it, but it's not enabled by default.

@glenrgordon
Copy link
Author

Good news about the V8 JS provider. How do I know if I already have it, and if not is there a way to get it? Would be great to see the start of a Python provider though I think I have since figured out a bit more about how to make such a thing.

@trustednstaller
Copy link

@glenrgordon

0:000> .veighton
Switching to the new V8 JsProvider.
You may find it useful to turn on redirection to the V8 JsProvider permanently:
    .settings set Extensions.EnableRedirectToV8JsProvider=true
    .settings save

It will look for JsProvider.dll inside winext\v8\JSProvider.dll which I did not see in downloading the latest Debugging Tools.

@wmessmer-msft Bump on the Python provider. And while not analogous directly, would it be possible to get a C# port of DbgModelClientEx.h? A C# provider in general would be very very welcome.

@wmessmer-msft
Copy link
Contributor

@glenrgordon

Apologies -- I didn't notice the tag on this earlier. The Python Provider was an "unofficial side project" of mine and I haven't had a lot of time to put into that. That said -- the start of it is still sitting in a branch of mine off the WinDbg Samples repo:

https://github.com/microsoft/WinDbg-Samples/tree/wmessmer/PyProvider/DataModel/ScriptProviders/PyProvider

I haven't had a chance to touch it in some time so I don't know if there are any issues with more recent versions of C Python.

@glenrgordon
Copy link
Author

glenrgordon commented Aug 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants