Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use MyEclipse to realize breakpoint debugging in JavaScript

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of "how JavaScript uses MyEclipse to achieve breakpoint debugging". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "JavaScript how to use MyEclipse to achieve breakpoint debugging" can help you solve the problem.

1. Prepare two files under the site: 1.js and index.html, introduce 1.js in index.html, click the button in index.html, and the test () method in 1.js will be called:

Xml code

< html > < head > < meta http-equiv= "Content-Type" content= "text/html; charset=gb2312" / > < / head > < script type='text/javascript' src='./1.js' > < / script > < body > < input type= "button" name= "t" value= "Test onclick=test ()" / > < / body > < / html >

two。 After starting tomcat, browse the page using myEclipse's web2.0 browser:

Analysis of MyEclipse breakpoint debugging JavaScript figure 1

3. In the web2.0 browser, enter the page address, after the page appears, click the "js Debug" button in the toolbar, and all the js files of the current page design will be listed in the "Javascript Scripts Inspector" window.

Analysis of MyEclipse breakpoint debugging JavaScript figure 2

4. After entering the 1.js file, you can add breakpoints to the js code:

Analysis of MyEclipse breakpoint debugging JavaScript figure 3

5.

This is the end of the introduction to "how JavaScript uses MyEclipse to achieve breakpoint debugging". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report