Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

firebug is not breaking on breakpoints

 
Alejandro Barrero
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bryce Martin
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you sure that the code is being reached?
 
Muhammad Saifuddin
Ranch Hand
Posts: 1324
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set breakpoint at start of script and check.
 
Alejandro Barrero
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 471
Hibernate Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Alejandro Barrero
Ranch Hand
Posts: 335
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alaa:

What shall I look for?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic