| Author |
firebug is not breaking on breakpoints
|
Alejandro Barrero
Ranch Hand
Joined: Aug 01, 2005
Posts: 273
|
|
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: 1318
|
|
|
set breakpoint at start of script and check.
|
Saifuddin..
[Linkedin] How To Ask Questions On JavaRanch My OpenSource
|
 |
Alejandro Barrero
Ranch Hand
Joined: Aug 01, 2005
Posts: 273
|
|
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: 15357
|
|
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: 273
|
|
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: 273
|
|
Alaa: What shall I look for?
|
 |
 |
|
|
subject: firebug is not breaking on breakpoints
|
|
|