How to debug python with vscode?
First write a python file, as shown below
Then click on the little spider on the left, as shown in the picture below
Then add a breakpoint, as shown in the picture below
Then select the current file, as shown in the picture below
Then click the triangle button, as shown in the picture below
Then you will see that the execution stops at the breakpoint
We can perform breakpoint debugging through the operation button at the top , as shown in the figure below
Related recommendations:vscode introductory tutorial
The above is the detailed content of How to debug python with vscode. For more information, please follow other related articles on the PHP Chinese website!