Getting value from PyCharm debug to plugin
Hi all,
I'm developing a plugin in which I need to get the large amount of data from PyCharm into the plugin. For better understanding:
- The data is taken from the Python variable - in the debug mode
- The data type could be "ndarray" or "bytes" (whatever is faster)
- The data size is approx 14 500 000 characters
What I have tried so far:
- When transferring ndarray I used the method PyDebugValue.getFrameAccessor().getArrayItems()
This took so long I couldn;t wait for it - When transferring bytes I used the method PyDebugValue.getFrameAccessor().evaluate()
Which is much faster than the previous method - it took approximately 25 seconds to transfer the data; it uses a lot of memory - 2GB.
After transferring the data to java it has approximately 45 000 000 characters - When transferring bytes I used the method PyDebugValue.getFrameAccessor().loadVariable().getValue()
Which is even faster but it transfers only 1000 characters
Do you know how to tune any of the previously described methods? Do you know about any other method?
Thanks,
Tom.
Please sign in to leave a comment.