| |

VerySource

 Forgot password?
 Register
Search
View: 1508|Reply: 15

[Ask an idiot question] About HTML in asp.net ~

[Copy link]

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-9 10:20:01
| Show all posts |Read mode
If I want to track and judge whether the JavaScript code in the aspx of the front desk is as I wish ~ or check it ~ Is there any good way?

Happy New Year to all of you!
Reply

Use magic Report

0

Threads

13

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-1-9 21:27:01
| Show all posts
You can see it in the html source code manager, and the html and javascript code in the foreground will not change at runtime. What you see in the vs editor and the runtime browser are the same.
Reply

Use magic Report

1

Threads

18

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-1-9 22:18:02
| Show all posts
Seems I can't follow me
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-9 23:18:01
| Show all posts
Run this page first
Then debug-attach to process
Reply

Use magic Report

1

Threads

60

Posts

37.00

Credits

Newbie

Rank: 1

Credits
37.00

 China

Post time: 2020-1-9 23:27:02
| Show all posts
I usually look for javascript errors in the javascript debugging in firefox, there are many plugins
Reply

Use magic Report

0

Threads

322

Posts

115.00

Credits

Newbie

Rank: 1

Credits
115.00

 United States

Post time: 2020-1-10 05:09:01
| Show all posts
The most convenient is to add debug code.
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-10 09:18:01
| Show all posts
Thank you3521565! ~
Reply

Use magic Report

0

Threads

20

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-10 10:09:02
| Show all posts
IE process can be bound, so you can perform JS debugging

Or add "debugger" to javascript, so you will be prompted if you want to debug when this code is reached. Of course, the premise is that you have turned on the "Allow script debugging" switch in IE (if you remember correctly, it should be Tools-> Internet Options-> Advanced-> Browse, mine is ENU IE7, lz can do it by itself Adjustment)

Such as
function test ()
{
var s = 1;
debugger // Run to this and it will stop and ask if you want to debug
var ss = s * 2;
}
Reply

Use magic Report

0

Threads

20

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-1-10 10:36:01
| Show all posts
IE process can be bound, so you can perform JS debugging
Reply

Use magic Report

1

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-1-10 10:45:01
| Show all posts
Thank you3521565!

But do you want to modify the Internet option? Need to tick off the prohibition of script testing ~
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list