javascript - Google Chrome cannot debug breakpoints
天蓬老师
天蓬老师 2017-06-12 09:30:23
0
5
1035

As shown in the figure, refreshing the page after setting a breakpoint does not allow debugger to be entered. It was possible before and the settings were not changed. Any solution?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(5)
大家讲道理

Maybe this code is not running

左手右手慢动作
console.log(e);

Is this printed? If it is printed, it means that there is an exception in this ajax request, and it will not enter the success callback

三叔

Faced with such a problem, we don’t necessarily have to worry about why this debugging doesn’t work. We can use other methods to check and debug our own code.
1. Here we can use the Network to check whether an asynchronous request has been initiated, whether the request is successful, and whether the response is normal.
2. Check through the console to see if there is any code error, and then try to print the output through console.log,
3. Eliminate possible problems one by one. The breakpoint debugging method of js is sometimes time-consuming and laborious. The fact that you did not enter the breakpoint may be more related to ajax. It seems to be caused by the delay in the ajax request. You can test this. .

There is no specific answer to your question here, I'm sorry, but when I see this problem, I also want to provide a solution, I hope it can help you.

左手右手慢动作

Add three breakpoints to determine
1. Add a breakpoint to var that=this to determine whether the function is called
2. Add a breakpoint to success to determine whether it is OK
3. Add a breakpoint to error to determine whether Failed

过去多啦不再A梦

The method is not entered yet

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!