Extending the Pycharm debugger

Answered

Does anyone know if it's possible to write a plugin to help with debugging? Specifically, I'd like to make custom UI for viewing Tensorflow variable. Right now if you have a variable that's a TF variable, you have to open them up and look at shape, or call .numpy() on them to make things work in SciView, etc.... all of this could be made smoother and more efficient I think.

 

I haven't made any plugins before, so can someone give me an idea of whether this is possible? From a quick scan I don't see any API for interacting with the debugger.

0
3 comments

Pdmitrano,

To extend debugger with additional renderer (like image/color rendered), you need to implement the following ExtensionPoint:

debugger.nodeRenderer

You can find the existing implementation int the intellij-community repository.

1
Avatar
Permanently deleted user

Is this true for Python as well? It seems the mechanism for defining what objects map to what renderer is the java class type? 

0
Avatar
Permanently deleted user

Acutally I found this! https://github.com/fabioz/PyDev.Debugger/tree/master/pydevd_plugins/extensions

 

Using the example test plugin for Rectangle and following those instructions worked for me.

0

Please sign in to leave a comment.