/    Sign up×
Community /Pin to ProfileBookmark

watch variable values inside javascript functions

Is there any way we can watch variable values inside javascript functions while running through the debugger. I am using javascript along with ASP.net on Visual studio 2010.

Thanks.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@PadonakJul 03.2010 — you can add an alert() at any point of the script and watch any var value can't you?
Copy linkTweet thisAlerts:
@tirnaJul 03.2010 — in most, if not all debuggers, you can set breakpoints to stop script execution at wherever you like in the program. At each breakpoint you can then check the values of all the variables.

You should also be able to set a 'watch' on a variable and so every time the variable changes value the script stops and you can check the variables value.
×

Success!

Help @Dkaur spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...