Pycharm / IDEA local search function, search variable value during debugging, or search local search methods such as file name

Take pycharm as an example:

  1. Know a variable value when debugging, but don't know its variable name
  2. 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

  1. First, click the debugging window:
    Insert picture description here

  2. 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 contained filecontent will be highlighted :
    Insert picture description here

  3. Switch to the previous search result, switch to the next search result

    Use the keyboard arrow keys 上方向键and 下方向键switch the previous and next search results

    The 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...

Guess you like

Origin blog.csdn.net/weixin_35757704/article/details/114434291