microsoft / vscode-python-debugger

Python debugger (debugpy) extension for VS Code.
https://marketplace.visualstudio.com/items?itemName=ms-python.debugpy
MIT License
41 stars 17 forks source link

Class Information and Set a Breakpoint at All Class Methods #254

Closed rheniser closed 4 months ago

rheniser commented 4 months ago

May we please get class information for the methods for which we set breakpoints?

May we please get the ability to set a breakpoint at all methods in a class?

Kind regards,

Ryan

karthiknadig commented 4 months ago

@rheniser Unfortunately this is not supported by VS Code itself. So, we don't have a way to support this.

karthiknadig commented 4 months ago

May we please get class information for the methods for which we set breakpoints?

You should be able to use the debug console to query any local or global variable when you hit the breakpoint. You should be able to get the info on the class there via the self attribute.