The four most commonly used function modules of chrome developer tools are: elements, console, sources and network.Debug « Spring Tool Suite « Spring Q&A. The keytool command is part of the JDK, and is described briefly in keytool. In figure 2, notice the two tabs to the right of the Debug window title.The keystore type and provider indicate the keystore is a Java keystore. Android Studio attaches both the Java debugger and LLDB to your app process, one for the Java debugger and one for LLDB, so you can inspect breakpoints in both your Java and native code without restarting your app or changing your debug configuration.Greatly convenient for developers to debug the pageDebug Java Application. CSS can be modified and displayed in real time. Elements: used to view or modify the properties of HTML elements, CSS properties, listening events, breakpoints, etc. Im able to set break points and debug through my controllers. I have installed STS with the vFabric tc Server and am working on developing a web app using spring Roo.
Short Cut Keys To Debug Java Application Code Without RestartingIn addition, the most important thing is that you can debug javascript source code and add breakpoints to JS code. Source code: this page is used to view the HTML file source code, javascript source code and CSS source code of the page. For example, if I want to see the methods and properties of the console, I can directly enter “console” in the console and execute it It can also be viewed as a JavaScript API. Console: the console is generally used to execute one-time code, view JavaScript objects, and view debug log information or exception information. A) Head on over to the Eclipse downloads page and. Copy as HTML is to copy the code, and delete node is to delete the whole node. Click edit as HTML to write code just like in the editor. The second part is the edit node. The first part is to add and edit the attributes of the node, such as class. As shown in the figure below, the values of class, SRC, width and other attributes.Right click on a DOM node and a menu will appear, which is divided into four parts Right click “review elements” in the page, and the elements panel will appear.To view the code of an element:Click the arrow icon in the upper left corner (or press the shortcut key Ctrl + Shift + C) to enter the element selection mode, and then select the element you want to view from the page, and then you can locate the specific location of the element source code in the developer tool elements columnTo view the attributes of an element:After locating the source code of the element, you can read out the attributes of the modified element from the source code. If HTML has a parent element, the parent element of HTML will still be displayed (this example is a little special). For example, in the figure above, the current element is body, and its ancestor element is HTML (which is also a parent element). When the element is modified (usually JS code is modified), if the corresponding event (node subtree change, node attribute change, node removed) appears, the page loading will be suspended, and JS will hang in the corresponding event listener function.The bottom shows all ancestor elements of a current element. This page can see all the element breakpoints of the current page. Computed style The attributes in style are all CSS attributes of the element after calculation, that is, the attributes used by the browser when rendering the page are read-only and cannot be modified in real time, so they are mainly used to view the final attribute value of the element. If show all is checked, all the style attributes of the element will be displayed. Computed style displays the final style of the selected element. ![]() At the same time, some styles can be disabled and enabled. Our modification of the style will be displayed on the page in real time, which saves the process of modifying the CSS file to modify a few pixels and then saving and refreshing. The part of the background that is not gray is a modifiable style. Through the sources – Watch panel, set the variables you want to monitor here. If the panel turns red, it means that the save is effectiveView variables directly during single step debugging:1. Enter the code: “alert (” result = + result) “enter to pop up the result Or enter the code“ console.log (“result =” + result) “direct printing of results is also acceptable, as shown in the figure below:For some simple JS statements, you can directly enter them in the console to view the resultsOpen the sources panel directly set a breakpoint for a line of JS code.After refreshing the page, the program will stop on the line where the breakpoint is set.Then we can add our own debug code after the breakpoint line, such as the following:Press the shortcut key Ctrl + s to save. The console panel will generally print some error information, similar to the app log, which file can be located to help us locate the problem.After the code is executed to line 161, if you want to print “result”, you can debug it in console. If I want to see the methods and properties of the console, I can directly enter “console” in the console and execute it or use the“ console.dir (console) “, you can also view the methods and properties of the console object When a function is not working well, the developer will first check whether the console reports an error. After clicking, pseudo class will appear, because in general, CSS rules of pseudo class will not appear.First, the figure above: I don’t know how many people have found that the information about Baidu recruitment on the baidu homepage of the browser development tool “console” is as follows:Console panel is often used for debuggingThe core object of the console is console. Florida drivers handbook in russianThey appear at the top of the right column.The first button (like the play button) is pause and start.If we want to skip the current breakpoint and continue to execute JS, we can click this button. Print variables through console, except in code console.log In fact, you can print directly with console in the process of single step debugging, as shown in the following figure:You can also directly put the mouse on the variable you want to view, and select it to see the variable value, as shown in the figure:Or directly enter the variable name in the console, enter:After setting the breakpoint, the following buttons are very useful. Otime is the debugging information of breakpoint line 3742. The last button is to activate and de activate all the breakpoints. If it is in the global scope, you will exit debugging. After clicking it, you will exit the currently executing function and reach the state where the function is finished. Click this button.After clicking, you will find that the program goes into the next line, and the debugging will be carried out step by stepThe up arrow is the return button. If we encounter a breakpoint again in the next execution, we will pause at that breakpoint.F10: execute sentence by sentence to the next stepWhen the mouse hovers, an English step over next function call will appear, which can be understood as step-by-step execution or sentence by sentence execution. (sometimes the first time you open it is blank, you can click the link again.).After opening, if it is JS content, you can directly interrupt the debugging above. You can select a color on the color palette above, or you can select the “pen” icon to pick up the color of the elements on the page.View the source code, move the mouse to the development tool window, press Ctrl + P, input the first few letters of the link address, and all the qualified addresses will be displayed automatically. In the styles window, click the small box on the right of color of a style (if there is no color, you can input it yourself, such as color:red ), the color picker will pop up. You can double-click to modify it.If there are many things to modify, you can collapse the elements and click Select, then right-click edit as HTML to modify.Select the element on the page, right-click “check”, and the developer tool window will be opened. It will jump into methods and expressions for statement by statement tracking debugging Debugging tips:Select the element on the page, right-click “check”, and the developer tool window will be opened to display the source code of the currently selected element.
0 Comments
Leave a Reply. |
AuthorJulia ArchivesCategories |