What would be the best strategy to debug a custom python extension?

Hello,

I’m coming from R universe and I am new to Knime and Python. I want to build custom knime nodes (extensions) using the python API. I have successfully followed the tutorial from knime official docs.

Now I want to build my first custom extension and I am facing an issue while attempting to debug in VS code studio. While running

import knime.extension as knext

in the VS code interactive console I receive the same error as already posted here which seems expected.

So I wonder how can I efficiently debug and explore the objects of my code directly through vs code rather than each time restarting Knime and waiting for its console to log me some info.

Thanks for your help