The solution to the variable value display loading value when pycharm debug

1. The cause of the problem

Examples of questions are:

 When searching online, there will be some Gevent compatible or something checked, but it doesn't work.

Two, the solution

1. First check whether there are other breakpoints

Click favorites in the lower left corner

 You will see all the breakpoints you hit and the bookmarks you made. At this time, you will find that there are other breakpoints besides the breakpoint you want to see. Maybe you forgot to cancel it, so this is where other breakpoints appear. It will be fine if you cancel it. 

 Click again to jump to the code. Cancel the breakpoint or click the minus sign above . At the same time, this favorites can also see in real time which places have breakpoints and which places have been bookmarked, which is very convenient.

2. Check the intermediate variable and adjust it to synchronous mode

Tick ​​the intermediate variable

 Then debug the loading of the variable as synchronous

Click debug in the lower left corner

 then click settings

 next

 Just select the first item. This ensures that the variable loading is synchronized with the debug. It was asynchronous before, so the variable loading may lag behind the debug, resulting in the value not being displayed, which is the loading value state.

Guess you like

Origin blog.csdn.net/allrubots/article/details/127349173