Take pycharm as an example:
- Know a variable value when debugging, but don't know its variable name
- The variable name is known, but the variable value is not known
These situations can be searched out like "full-text search", the method is as follows:
Variable name/value search
-
First, click the debugging window:
-
Enter the content to be queried directly. If the variable value is known, but the variable name is not known, just enter it
变量值
. In short , you know what to enter, for example:Enter it
file
, and all containedfile
content will be highlighted :
-
Switch to the previous search result, switch to the next search result
Use the keyboard arrow keys
上方向键
and下方向键
switch the previous and next search resultsThe search result positioning will first locate the
类
row that contains this result , and then enter the row that contains the result in this category; then enter the next category that contains the result, and specifically include the content of the result in the positioning category...