473,546 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

breakpoint debugging in javascript -- state of the art

Hello,

Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.

thanks,

-Morgan
Aug 19 '08 #1
6 2061
On Aug 19, 3:53 pm, Morgan Packard <hellomorganpac k...@gmail.com>
wrote:
Hello,

Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.

thanks,

-Morgan
If I need lots of output to debug I make a floating div on the page
and add output to it, like a terminal window.
Otherwise it's just the good old fashioned alert.
I've never used firebug in my life and don't intend to.
http://cylo.co.uk
Aug 19 '08 #2
Morgan Packard wrote:
Hello,

Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.
thanks,
-Morgan
I completely agree on Firebug's unreliable approach to breakpointing.
It's completely random whether it will work or not. You can't tell them
(on their google forum) about anything like that though. They get all
defensive and attack you for casting doubt on their great tool. It's at
least an improvement on the worst debugging tool ever invented - Venkman.

I find that Microsoft Visual Studio is the only reliable debugger. If
you set a breakpoint, you're 99% sure that it will stop if that line of
code is executed. The 1% doubt is for code that's conditionally loaded
into scope and VS can be unsure. It's mostly good though. I use the 2003
..NET version. It can even let you set breakpoints in code that was
brought into existence via an eval statement (which Firebug can't do).

Neither of them let's you debug code that was created dynamically in the
parent page from a createElement from inside an iframe though. If any of
that code has an error, you get things like Error on line 21489513.

Aptana is a plugin which I believe lets you debug JS in Eclipse. I tried
it once but gave up after a short time. I should have put the time in to
get it working but never did.
Aug 19 '08 #3
Laser Lips wrote:
On Aug 19, 3:53 pm, Morgan Packard <hellomorganpac k...@gmail.com>
wrote:
>Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.

I've never used firebug in my life and don't intend to.
Why? You don't like making your job easier?
Aug 19 '08 #4
Stevo meinte:
Morgan Packard wrote:
>Hello,

Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.
thanks,
-Morgan

I completely agree on Firebug's unreliable approach to breakpointing.
It's completely random whether it will work or not. You can't tell them
(on their google forum) about anything like that though. They get all
defensive and attack you for casting doubt on their great tool. It's at
least an improvement on the worst debugging tool ever invented - Venkman.
Firebug is - IMO - still the most "direct" tool for debugging. Apart
from the breakpoints you still have console.log...
I find that Microsoft Visual Studio is the only reliable debugger. If
you set a breakpoint, you're 99% sure that it will stop if that line of
code is executed. The 1% doubt is for code that's conditionally loaded
into scope and VS can be unsure. It's mostly good though. I use the 2003
.NET version. It can even let you set breakpoints in code that was
brought into existence via an eval statement (which Firebug can't do).
I found Opera's Dragonfly more reliable with breakpoints, but haven't
used it too much, yet.

Gregor

--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 19 '08 #5
On Aug 19, 4:28 pm, Stevo <n...@mail.inva lidwrote:
Laser Lips wrote:
On Aug 19, 3:53 pm, Morgan Packard <hellomorganpac k...@gmail.com>
wrote:
Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.
I've never used firebug in my life and don't intend to.

Why? You don't like making your job easier?
Just never had the need to use it. I can do all my debugging without
it. Firebug has'nt always been arround, alerting was the only way to
see data at certain points in the code, AND can actually act as a
break point to a certain degree because while an alert is active,
javascript code stops.

Why do you feel the need to use it?
Aug 20 '08 #6
Morgan Packard wrote:
Wondering what everyone's experience with breakpoint debugging is
here. I've been using firebug for a few years and, while I'm delighted
to have _some_ debugging ability, I've found it to be very fussy,
difficult to know when it's going to work or not. I'm curious how
others approach debugging, and if anyone here feels they are able to
use a breakpoint debugger reliably.
I found breakpoints for client-side scripts (along with those for the
corresponding server-side script) quite useful when debugging a virtually
undocumented XHR-based Web application a while ago. I used Firebug < 1.2 at
that time (IIRC 1.0.x), when there was no indication yet as to at which
lines execution could be suspended. Firebug 1.2.x now marks the
corresponding line numbers with green foreground color here, and I would say
debugging works reliable for me then. (Still, I had hoped that Joe
implemented my suggestion of setting the breakpoint on the next available
line instead.) If you need more than simple debuggign, you can install
Venkman, the original JavaScript debugger on which Firebug's debugger is based.

Of course, it is a PITA to debug minified code (although Venkman can
pretty-print it). Which is one of several reasons why I strongly recommend
against minifying.
HTH

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Aug 20 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1729
by: Ash | last post by:
Hi all, I have a C# web application which calls a number of stored procedures. I wish to step into the stored procedures while debugging i.e "Mix-mode debugging": I have completed the following steps: Configured DCOM Connected to database via Server Manager (I can see the SQL server and the stored procedure)
3
2060
by: Ash | last post by:
Hi all, I have a C# web application which calls a number of stored procedures. I wish to step into the stored procedures while debugging i.e "Mix-mode debugging": I have completed the following steps: Configured DCOM Connected to database via Server Manager (I can see the SQL server and the stored procedure)
4
1744
by: Jay | last post by:
Guess this has probably been reported already. Seems if you don't use {} with for/while etc., the debugger stops at the wrong line. In the example below, I had a breakpoint at line 6 but the debugger stopped in every iteration of the loop. Jay 1. for (int index=0; index < line_buffer.Length (); index++)
2
4064
by: Ash | last post by:
Hi all, I have a C# web application which calls a number of stored procedures. I wish to step into the stored procedures while debugging i.e "Mix-mode debugging": I have completed the following steps: Configured DCOM Connected to database via Server Manager (I can see the SQL server and the stored procedure)
3
2957
by: John Kutsor | last post by:
I have been working on a ASP.NET project with VB Code behind for a while now, and it ran perfectly up until now. When I try to set a breakpoint or a watch at certain parts of the project, even though that code executes, no break is made. I validated that it was making it up and after the breakpoint, but still no breakpoint execution or...
1
1036
by: Bob | last post by:
In a particular project that I'm debugging (compiled as debug, not release) I cannot set a breakpoint inside a particular function. I click to set it, and magically, another file from another project is opened in the IDE, and the new breakpoint is set there, in a random location. And I get all questionmarks on the existing breakpoints I set...
5
2075
by: DCC-700 | last post by:
I am using ASP.Net with VB on the 1.1 Framework running on Win XP Pro. I am trying to gauge the time it takes to sort a datagrid using different code sets. But when I am debugging the page there is a long delay before hitting breakpoint in page load. When I initially load the page I hit the breakpoint right away. Then I click on a Sort...
10
21798
by: Ole | last post by:
Hi, Using VS2005 and a windows CE 5.0 device running CF2. Suddenly I can't debug my C# program from VS2005 - when setting a breakpoint I only see a ring instead of the normal red dot and when holding the mouse over it I see a message saying: "The breakpoint will not currently be hit. The specified module has not been loaded". I have no...
5
2271
by: Max2006 | last post by:
Hi, I am using Visual C# 2005 and I like to setup breakpoint that pause execution upon a class variable change. Is that possible?
0
7507
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7435
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7698
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6030
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5361
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.