Solved

How to debug issue when not throwing errors?

Posted on 2013-01-18
6
239 Views
Last Modified: 2013-11-19
HI All,
I have a page that was working as designed. Someone added some code (but I have no idea what was added) and now a simple image link (a href)  does not work? When I click on it it doesn't throw any errors, it just does not work. How would I go about debugging this?

Thanks!
0
Comment
Question by:894359
6 Comments
 
LVL 25

Expert Comment

by:Kyle Hamilton
ID: 38795453
post a link to the page.
0
 
LVL 18

Assisted Solution

by:Jerry Miller
Jerry Miller earned 167 total points
ID: 38795500
There are no backups of the page to determine the new code? You should always have backups of the current production code. Also keep the development code separate until it rolls into production.

Can you add a new link that works or do none of the links work on the page? A link to the page would be nice, but any code that you can show is better. Please remove any proprietary information before posting.
0
 
LVL 11

Assisted Solution

by:mcnute
mcnute earned 333 total points
ID: 38797016
Well, maybe the code that was added replaced the image tag which looked like this:

<img src="some_image_src_path/image.jpg" alt="" onclick="dosomething()"  />

Open in new window


and turned it into something like this:

<img src="some_image_src_path/image.jpg" alt=""  />

Open in new window


if the onclick has been removed nothing will happen on click. Just a guess.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:894359
ID: 38799933
Sorry for late response. The code was rolled back to the working version and the broken code is in a dev. env. which nobody here can access. The code wasn't changed for the link but code via a Tag Management system was injected which caused the issue. Not sure how to pin point the issue? Thoughts?
0
 
LVL 11

Accepted Solution

by:
mcnute earned 333 total points
ID: 38800612
Can't you send us a sample of the code? This would help enormously.
0
 

Author Closing Comment

by:894359
ID: 39240153
Thanks for all the help. I understand this was difficult due to no code sample.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to make footer stick to bottom 9 29
Place text over image using CSS 6 44
flex div overflows its container 4 22
Jquery Validation Messages Not Showing Up 3 13
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question