Currently, Common Browser IE, Chrome, and Firefox all have corresponding script debugging functions. As our. NET camp, it is enough to learn how to debug JS in IE. After mastering the debugging methods in IE, the debugging methods in Chrome and Firefox become quite simple.
Debug in F12 Developer Tools
Open IE and press the F12 key to open the developer tool, which is a built-in developer development tool f
you have Script Editor, then you'll be offered the choice of "new instance of Microsoft Script Debugger" or "new instance of Microsoft Script Editor ". otherwise, you'll just see "Microsoft Script Debugger ".
If you see that, then you have script editor installed. Congratulations!
2) using Microsoft Script Editor to debugIn general it is easiest to launch the editor from IE (rather than launching it as a stand-alone application ). one handy way to debug
I usually use the console to debug css, but if Javascript needs to modify the source file, how can I directly modify js debugging? Ps: If you can modify the source file directly on the console, What experience do you have? I usually use the console to debug css, but if Javascript needs to modify the source file, how ca
, just like their names, lets us set a breakpoint that triggers when the feature's Ajax call occurs.This is very effective when you are debugging a web app's network transfer.4. Mobile Device Simulation EnvironmentGoogle Chrome has some very interesting tools for simulating mobile devices that help us debug the operation of the program on mobile devices.The way to find it is: press F12, bring up the developer tool, and then press ESC (the current tab
Step 1:Open an existing Asp.net application in Visual Studio 2005ProgramWhich requires some JavaScript.
Step 2:When we create a web project in Microsoft Visual Studio, a file named Web. config is created in this web project by default.
Let's check its settings: Set the debug attribute to true.
Step 3:Open the Internet Information Service (IIS) manager.
Start> Administrative Tools> Internet Information S
Document directory
Commands while page is running (no breakpoints hit)
Commands while page is paused in debugging mode (break point is hit)
I have been wondering how to use chrome to debug JavaScript code on the Internet, but I have not found any useful Chinese article (maybe my Google has a problem ), I don't know how to write an article E. I feel that the author has written a good article, so I try
1. What is console?Console is a separate window used to display JS and DOM object information. And inject a console object to Js.You can output information to the console window.2. What browsers support console?Many people may know that chrome and Firefox support the console. Other browsers supportHold bad. For example, although the development tool provided by IE8 supports the console, its functions are monotonous and display objects.[Object, object], and you cannot click to view the attributes
, a corresponding message is output in the console and an exception is thrown.type="Text/javascript" > console.assert (1==2, "error");// Will errorscript>1 equals 2, error errors, assert (assertion) is a good feature to ensure the correctness of the program.Tracing the call trajectory of the function.Console.trace () is used to track the call path of a function.ScriptType="Text/javascript" > /* How the
is very effective when you are debugging a web app's network transfer.
4. Mobile Device Simulation EnvironmentGoogle Chrome has some very interesting tools for simulating mobile devices that help us debug the operation of the program on mobile devices.The way to find it is: press F12, bring up the developer tool, and then press ESC (the current tab cannot be the console), you will see the Second
page load completion function, then how do we know it is bound by which JS function, If we don't know the bound JS function, let alone debug it.Here's a look at how to view it, or just the test page for example, but this time we look at "Submit a review" to explain it,Right-click on "Submit Comment"--audit element, we can clearly see that this button is not bound to any events. Enter the following code inside the console panelfunction lookevents (ele
This article briefly introduces the new features of IE8. Using IE8 Beta launched by Microsoft, you can easily debug JavaScript. I believe this article will certainly help you gain some benefits.
Debug JavaScript with Microsoft IE8 Beta
For developers, the biggest disadvantage of IE compared with Firefox is that it is
Firefox browsers, you can use the relevant debugger or plug-in to debug JavaScript.
● In Firefox, you can use the built-in "error console ". The procedure is as follows:Open the Firefox browser → In the menu bar "tools" → select "error console.Without other plug-ins, its built-in "error console" is a very good choice.
In addition, there are some good debuggers In the Firefox browser, such as Venkman an
Example of using firebug to debug javascript
There are many ways to debug javascript. This article describes how to use firebug. If you are interested, refer
The Code is as follows:
Debugging example
The Code is as follows:
Follow these steps:
(1) Open ie --> Internet Options --> advanced; remove the options on "Disable script debugging ".
(2) Open the page for debugging
(3) Start vs. Net IDE and select Tools-debug process (CTRL + ALT + p). Select the IE process to be debugged.
(4) Click the attach button and select the script option. then click OK to close the dialog box.
(5) Select the IDE menu debug à windows à runni
1. What is console. log ()?In addition to some older browsers, most browsers now have built-in debugging functions. Even if there is no debugging function, you can install plug-ins to supplement it. For example, in earlier versions of Firefox, there is no built-in debugging tool. In this case, you can install the Firebug plug-in to add debugging functions. In a browser with debugging functions, a member variable named console is registered in the window object, which refers to the console in the
In the previous article "Debug JavaScript/VB Script program (IE)", the tutorial on helping customers (www.bkjia.com) introduced how to debug the Script program in IE. During routine operating system maintenance, we sometimes write some small script programs to simplify system management, such as calling some WMI functions to automatically install and uninstall pr
In a recent project, you will not be able to debug JavaScript code when submitting to a child page, sometimes this problem, we can not normal in the browser, see our child page JavaScript code, so can only use the original alert or Console.log (), of course, this is a solution, but sometimes, we want to see how the program is actually running, but also can see wh
[New Features of VS2017] Debug javascript script in VS and vs2017javascript
1 Overview
VS2017 can debug JS. This article briefly describes how to enable and disable the VS debugging function in VS2017.
2. Details
When the VS2017JS debugging function is enabled, the following interface is displayed when we use VS2017 to open the solution:
Disable VS2017 js
good News: Now we can debug node. js with our browser!!!Premise
node. js 6.3+, which can be downloaded on the node. JS website;
Chrome 55+. If your local chrome is upgraded to the latest version or
ConfigurationFor now, parallel debugging of JavaScript and node. js in the browser side is a new feature, a new experience. To be able to work properly, you need to configure the following:
In general, the page for viewing html elements is first displayed.
2.3 click "script" on the top of the page.
Click "reload" to view the source code.
If no source code is displayed on this page, it indicates that there is a syntax error in the source code. You must modify the syntax error first. Common Errors include: unpaired parentheses, missing function return values, undefined variables, and case-insensitive errors.
You can use this function to detect syntax errors in the code.
[
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.