pycharm debug

Troubleshooting

  • Effect or effects not get out

  • Run background can be seen the error

  • pycharm debug function: to help see the code
    problem is not clear that place does not lead to results, then the break point
    break in play method definition / function / class inside

Background breakpoint debugging

You can see the parameters in the code inside the values, or click on the map attribute obtained indicate the position of
Here Insert Picture Description
the input value of the property you want to view or other, you can see to
Here Insert Picture Description
make your code run down, the figures point position or press F8
Here Insert Picture Description
Here Insert Picture Description

The front end of an error

  • We can see by checking the browser, as shown below
    Here Insert Picture Description

Front-end breakpoint debugging

  • Marked break refresh the page to enter debug mode
    in a row the top right side are: Pause / Resume (F8 shortcut), single-step execution (F10 shortcut key), step into this block execution (F11 shortcut key), single step out of the implementation of this block, disable / enable all breakpoints
    Here Insert Picture Description
    in the current area code is executed, if found in the debug place needs to be modified, but also can immediately modify, save modified to take effect, thus eliminating the need for the code and then go to write, and then looked back refreshed
    Here Insert Picture Description
  • The results shown in FIG debugging
    Here Insert Picture Description
  • For js file, you must master
    • Construction of the front end of the parameter name sent to the background
    • url, js ajax request url defined address, routing and background definitions consistent
    • The back end of the return data

basis

Corresponding to first find the error location of the code, the logical relationship between the code

  • Tip: when introducing separate different types of introduction, as shown below
    Here Insert Picture Description

Guess you like

Origin blog.csdn.net/xiaogeldx/article/details/90682534