Track python warnings in VScode

Viewed 989

I want to know what line of code causes warning raising in my code. Is it possible to do it in VScode? For example, I see warning in terminal: enter image description here

As for now, I can see only the imported module that raises a warning in python terminal, but I can't track it to the exact line of my code, only to the line of an imported module. Probably, it's possible to add a breakpoint on warnings or to change some settings, or to use an extension?

1 Answers

Have you added the standard python extension for vs code? This should normally display warnings in your code.

You can go to Preferences => Extensions and then search for 'Python' to download extensions for python.

Related