Questions tagged [javascript-debugger]

JavaScript debugger are tools that let you debug your JavaScript code by pausing the execution at any time, step through the code and see what each variable available looks like at that moment.

JavaScript debuggers allow step debugging of JavaScript code. Using them you can set breakpoints within the code. When a line of code is executed, which has a breakpoint set for it, the execution stops at that line and allows to execute the code step by step.

While stepping through the code the debugger displays all variables available within the current stack frame and typically also allows you to set some watch expressions.

As one of the main use cases for JavaScript are web browsers, different browsers have integrated tools to debug JavaScript. These tools are:

Furthermore IDE's like NetBeans or Eclipse also include debuggers for JavaScript.

See also

370 questions
0
votes
1 answer

Where are the Web Console objects in Firefox Devtools?

I found a way to inject information into the Firefox Web Console, catching and modifying the return value of createMessageNode, modifying the web-console output: Oddly enough, the elements returned don't seem to have any possible way to link them…
0
votes
0 answers

Stopping JavaScript manipulation to YouTube embed code

I am trying to add a YouTube embed link on to a web page I did not originally develop (and therefore not that familiar with it) with lots of different things already going on with it (i.e. many other js calls, etc) - so in other words for a novice…
fakeguybrushthreepwood
  • 2,983
  • 7
  • 37
  • 53
0
votes
2 answers

C++ like debugging in Javascript

In the beginning I started learning to program with C++,for that I used Viusal C++, I had a debugging mode in Visual C++ where I could look what values variable have on Run-Time.As JS code is executed in browser I have to consider my self what…
Labeeb
  • 369
  • 2
  • 6
  • 18
0
votes
1 answer

Visual Studio 2012 JavaScript Debugging

All of a sudden, launching a web site in debug mode using Visual Studio 2012 no longer attaches the JavaScript debugger. I have to manually attach to the new Internet Explorer process that launched, and I have to do this everytime that I launch the…
0
votes
1 answer

Is there any JavaScript debugger for IE < 8?

Is there any light-weight JavaScript debugger for IE < 8? I've been using Visual Studio, but it's a bit of a hassle when you need to install it to a client computer to debug IE7 and lower...
Gyum Fox
  • 3,287
  • 2
  • 41
  • 71
0
votes
2 answers

Out of range error in firebug console

I am trying to debug ext-all-debug-w-comments.js file. The file is pretty big and when the error occurs, it says "TypeError: all.item(...) is null (151559 out of range 149122)" Basically the error occurs at line number 151559 but only 149122 files…
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
0 answers

Chrome debugger continues automatically

I have a debugger statement (i.e. debugger;) in my javascript code and the chrome debugger halts correctly, but then it just continues, but breaks at the next breakpoint. What the hell is wrong with it/me? Thanks Chris
Coxer
  • 1,694
  • 2
  • 26
  • 44
0
votes
2 answers

Browser console and calculating multiple javascript execution time differences

I can easily do this: console.time('mytimer'); doSomeWork(); console.timeEnd('mytimer'); But is it possible to calculate time in multiple functions. I need to define the script's start time in a global variable. Then inside multiple functions I…
trante
  • 33,518
  • 47
  • 192
  • 272
0
votes
1 answer

Web Development on an Android Tablet

I got my first android tablet in today and normally when I make web apps I use software like Gimp, Inkscape, Blender, and text editors or debuggers like Geany, Notepad++, JSBin, Liveweaver, and the popular jsFiddle. However since I got this I can't…
Michael Schwartz
  • 8,153
  • 14
  • 81
  • 144
0
votes
1 answer

Typescript definitions for wsdl

I'm using asp:ScriptManager to call my webmethods from javascript. Now I migrate to TypeScript and would like to have my WebMethods and DTO definitions be usable from TypeScript. I searched, but couldn't not find anything (except a suggestion) that…
0
votes
1 answer

JQuery doesn't execute until function is complete in IE8/9 (using Debugger Function)

What happens is: I have an onclick element in IE. Way simpler than previous edits (pared it down a bit). (css file)#dialog-modal{display:none;height:50px;width:50px;background-color:#000;}(/css)
xml…
0
votes
2 answers

Debugging JS in IE-7

I use Firebug for debugging JS and HTML in Mozilla a LOT but every now and then I run into an IE-only JavaScript bug, which are really hard to locate (ex: error on line 802 Char 1, when the source HTML only has 300 lines). I badly need to have a…
user2003007
0
votes
1 answer

Visual Studio Debugger - How to quickly find which part of a long if statment return false

I am looking for a quick way to identify the part inside a complicated if condition will cause the whole condition to return false. Thanks.
Omtechguy
  • 3,321
  • 7
  • 37
  • 71
0
votes
0 answers

Why does the firefox debugger jumps to a random location?

I have this piece of code in file-A.js SugarBee.prototype.doubleClicked = function(canvas){ debugger; this.createPropertyEditor(); } Firefox debugger stops at the first line of my function, which is what I want. So I hit the "step in"…
ychaouche
  • 4,922
  • 2
  • 44
  • 52
0
votes
1 answer

Parsing the debugger keyword

What are the parsing rules regarding the debugger keyword? On Chrome, the following works fine: debugger console.log('Hello!') but debugger console.log('Hello!') is a SyntaxError. Why is replacing one form of whitespace (new line) by another form…
Randomblue
  • 112,777
  • 145
  • 353
  • 547
1 2 3
24
25