I am used to debugging in RStudio. Using R I simply use the command: debug(my_function), then run the code and automatically the script debugs at my_function.
Now I am using Python in VS Code, I see debugging is possible by setting breakpoints visually using the red dots. However I need to debug a function without actually knowing where this function is stated. So my question is can I debug a specific function in VS Code using a command?
I hope to use something like this command line -> debug(my_function)
Thanks!
CodePudding user response:
It looks impossible for now, I have submitted a feature request on GitHub.
Maybe you can try to copy the function into an isolated python file to debug it for now.
CodePudding user response:
They are called Function Breakpoints
A function breakpoint is created by pressing the button in the BREAKPOINTS section header and entering the function name. Function breakpoints are shown with a red triangle in the BREAKPOINTS section.
