It's not a secret anymore!*
The moose likes HTML, CSS and JavaScript and the fly likes firebug is not breaking on breakpoints Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "firebug is not breaking on breakpoints" Watch "firebug is not breaking on breakpoints" New topic
Author

firebug is not breaking on breakpoints

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
I just installed firebug on firefox in Vista, but firebug is not breaking on breakpoints. Is there anything that i have to set up?

Please help


Your help will be greatly appreciated,
Alejandro Barrero
Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
How are you sure that the code is being reached?
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

set breakpoint at start of script and check.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
For example, I am using a javascript file like:

var caracterSeparador = "/";
2var diasEnMes = new makeArray0(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
3
4function esFecha(laFecha) {
5 var posicion1 = laFecha.indexOf(caracterSeparador);
6 var posicion2 = laFecha.indexOf(caracterSeparador, posicion1 + 1);
7 ...

I put break points at 2 and 5 above, but it doesn't break when it executes. It does execute correctly, but I had to fix the problems with alert.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Sometimes it is better to use debugger; where you want it to break.

Some explaination here:
http://www.ddj.com/development-tools/196802787;jsessionid=DMJRXCEUB32SAQSNDLOSKH0CJUNN2JVN?pgno=5

Eric
Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
I used the keyword debugger at the end of one line in the js file and in a line by itself and still the break points don't work.
More confusing is that break points started to work for some reason, but after I closed firebug and reopened again they stopped working???
Is it possible that this is a Widows Vista thing?
Bryce Martin
Ranch Hand

Joined: Nov 19, 2007
Posts: 269
As much as I would love to blame it on Vista, I can't be certain that it is. What version of FF are you using? Or are you doing this in IE?
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 460
Originally posted by Bryce Martin:
As much as I would love to blame it on Vista, I can't be certain that it is.


Well, I like blaming vista for a lot of things too, but I think that vista has nothing to do with this at all.


Visit my blog: http://jnassef.blogspot.com/
Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
Alaa:

What shall I look for?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: firebug is not breaking on breakpoints
 
Similar Threads
tomcat under eclipse: breakpoints that don't
action class not being called.
Struts2-json plugin not serializing action class to json
Debugging jQuery
How to edit javascript in firefox 3.6