[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

interpret firefox errors

Hi,

Is there any helpful way to interpret javascript/html errors that are reported by the firefox browser? I will get some dumps like:

Error: Error in parsing value for property 'width'.  Declaration dropped.
Source File: http://localhost/website/TryIt.php#
Line: 0

In TryIt.php I have a bunch of includes, and it looks like the line number reports are kinda useless. Like there is nothing at line 0 relating to 'width'.

Thanks
0
minnirok
Asked:
minnirok
2 Solutions
 
SidFishesCommented:
i find the best way to deal with debugging includes is to load a page, save it to a file and upload it to http://validator.w3.org/

use the advanced options to show source and you can see the instance of the error in the whole page
0
 
mvan01Commented:
If you put your includes in-line, for testing, then the line numbers in error reports begin to make sense.  Debug like that, and then put the corrected code back into the includes.  Also, even if you know the included files are good goods, you will be able to debug the parts in your main file which are tossing the errors.

I know combining the files is tedious, and maybe even error-prone itself, but it generally works.  I'm not sure, does using validator as describe above require all of the code in one file anyways?

Peace and joy.  mvan
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now