Debugger

Dec 23, 2005

Is there a free JavaScript debugger available?

View 5 Replies


ADVERTISEMENT

A Debugger To Let Me See The InnerHTML Of A Div?

Sep 29, 2006

What debugger would let me see the HTML in a div after I've added HTML
to the div using its innerHTML? That is:

var someInputHtml = prompt("input html");
var referenceToSomeDiv = document.getElementById("someDiv");
referenceToSomeDiv.innerHTML = someInputHtml;

When debugging, how do I now see what HTML is in the div "someDiv"?

Maybe there is a FireFox extension for this? Firebug?

View 5 Replies View Related

Looking For Script Debugger

Jul 20, 2005

I would like to download debugger for javascript.

Since I works only with IE I thought of trying using the Microsoft Script
Debugger.

I found the following URL
http://msdn.microsoft.com/library/d...tml/sdbug_1.asp

My problem is that I can't find the URL to download the debugger.

Any other JS debugger that works well for IE ?

View 5 Replies View Related

Looking For Javascript Debugger

Jul 20, 2005

I'm looking for a good javascript debugger.

View 3 Replies View Related

JS Debugger (sort Of)

Aug 13, 2003

I finally got tired of doing:

alert('myVar: ' + myVar);
and
str='' for(i in someObject) str+=i+': '+someObject[i]+'' alert(str);

and put together a little debugger to take care of that.

I bet I'm not the first one, but when it comes to JS my motto is "If you want to do it right.

Anyhow here is the demo, you are welcome to view and use the source, just leave the credits...

View 4 Replies View Related

Object Debugger

Nov 3, 2003

This is a script that frequently keeps me from using bad words.

It loops through an object and returns its properties in text (for alert) or html format.

Usage:

_viewObj(obj[,instanceName[,type[,levels]]]);

Ex:
var obj = {id:3,arr:[2,3,"str",{prop1:2,prop2:""}],nr:3}

alert(_viewObj(obj));
document.write(_viewObj(obj,"obj","html"));

Parameters:

pValue: The object
pName: Instance name of the object. Default: "input"
pType: Which type to be return (text or html). Default: "text"
pLevels: The max amount of levels. Useful if an object references a parent. Default: infinite

Returns:

A string with the properties

function _viewObj(pValue,pName,pType,pLevels,pObj) {

function objExists(pCurr) {
for (var i=0; i<pObj.length; i++) {
if (pObj[i]==pCurr) {
return true;
}
}
return false;
}


pType = new String(pType).toLowerCase();
if (new String(pName) == "undefined")
pName = "input";
if (new String(pType).search(/html|text/i) == -1)
pType = "text";
if (pLevels == "undefined")
pLevels = -1; /* Infinite */
if (typeof pObj == "undefined")
pObj = [];
var str="";
if (typeof pValue != "function") { // No functions / methods - just values
var br=(pType == "text"? "
" : (pType == "html" ? "<br>" : ""));
if ((typeof pValue == "object" && !!pValue) && (pValue.length) && (!pValue.substring)) { // An array
try {
for (var i=0;i<pValue.length;i++) {
if (pLevels==0) {
str+=br+pName+"["+i+"]: "+pValue;
}else{
str+=""+_viewObj(pValue[ i ],pName+"["+i+"]",pType,pLevels-1,pObj);
}
}
} catch (e) {
str+=br+pName+": "+pValue+" (Not an array)";
}
} else if (typeof pValue == "object" && !!pValue && (!pValue.substring)){ // An object
try {
for (var prop in pValue) {
if (pLevels==0) {
str+=br+pName+"."+prop+": "+pValue;
}else{
if (typeof pValue[prop] == "object" && objExists(pValue[prop])) {
str+=br+pName+"."+prop+": [Parent Object]";
}else{
pObj.push(pValue);
str+=""+_viewObj(pValue[prop],pName+"."+prop,pType,pLevels-1,pObj);
}
}
}
} catch (e) {
str+=br+pName+": "+pValue+" (Not an object)";
}
} else{// if (typeof pValue != "object") { // Simple value
str+=br+pName+": "+pValue;
}
}
return str;
}


edit:

Avoiding never-ending loops by checking for parent objects.

Ex:

var parentObj={id: 2};
var test={id: 1,par: parentObj};
parentObj.tst=test;

View 6 Replies View Related

Best Javascript Debugger?

Jul 27, 2002

According to the Sitepoint FAQs, most serious programmers debug their scripts by hand, but when my javascripts don't work , I like to be told why, the more explicitly the better.

I used to have NN4 and its debugging was fantastic (certainly more helpful than IE and Opera, although theirs aren't too bad). I was just wondering what other people think is the best browser/resource for debugging javascript. If it's Netscape, does this mean I have to download the whole browser, and does the debugging vary with version number? Which would be the best to get? (Note: I'm only interested in its debugging capabilities, not its quality as a web browser).

View 11 Replies View Related

IE Script Debugger Problem

Jul 20, 2005

Whenever I stop the IE script debugger it closes the browser window as well.

View 2 Replies View Related

New Javascript Debugger: FireBug

Jun 14, 2006

I recently learned about a new Javascript Debugger called FireBug. From what I've heard, it's pretty good. Here's the link: Code:

View 4 Replies View Related

Debugger Installed But Does Not Work

Sep 20, 2009

I have both firebug and venkman debuggers installed. Both seem to function yet neither works. I use firefox3.5.3., windows xp.

View 2 Replies View Related

Best Script Editor / Debugger For Windows?

Sep 23, 2010

I'm pretty new to JS, used to be back-end guy with strong front-end skills (HTML, CSS), learning JS now and I have a huge problem.

I'm using Windows 7, coding mostly in NuSphere PhpED, but I see it doesn't work so well for JavaScript.

What's the best tool for JavaScript coding in Windows, maybe with built-in debugger (I hope there's something else than Firebug, Dragonfly etc.) with syntax coloring, and perfectly with a feature like this one

Maybe you do know the best syntax-help Windows editor for PHP too? (PhpED is not perfect IMO). Eclipse?

BTW - if there are any OSX based front/back-end webdevs - put screens of your editors features (JavaScript & PHP preferably). I'm thinking about switching to MAC, but haven't got cash for that at this moment (and I'm kind of Apple hater, however I believe in front-end field they have no contest).

View 1 Replies View Related

IE Suggest Bug But No Code Is Reported In The Debugger?

Oct 14, 2010

Javascript issue: IE suggest bug but no code is reported in the debugger. Any ideas why IE doesnt find the broken code / or line

View 1 Replies View Related

Can't Inspect Or Watch Variable In Microsoft Script Debugger.

Oct 3, 2006

I have a javascript program that works fine under Firefox and on IE
when running XP, but is having a problem with IE running under Windows
2000 Pro.

On my personal XP development machine I have the Microsoft Script
Editor and I can set a breakpoint, step through code, inspect
variables, etc... with no problem.

On a machine where I am trying to debug this problem I am running
Windows 2000 Pro with IE 6. I installed the Microsoft Script Debugger.
When the program hits the exception the script debugger will come up
and show me the line where the error occurred.

I need to be able to inspect the variables to determine the problem.
However, from what I can tell, there isn't anywhere to inspect or watch
the variables in MSD?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved