JavaScript Debugging

View previous topic View next topic Go down

JavaScript Debugging

Post by Admin on Thu Oct 12, 2017 8:07 am

❝ Errors can (will) happen, every time you write
some new computer code. ❝




Debugging is the process of testing, finding, and reducing bugs (errors) in computer programs.The first known computer bug was a real bug (an insect) stuck in the electronics.


When you hear the word program you can somehow relate it to “debug” or “debugging”. Because no perfect program has been made without debugging it or securing that the whole program will run smoothly. Every programmers knows the struggle of debugging, even a single colon could cause program malfunctions.

Any experience about debugging a program? Are they good experience or bad?
Have you try to debug a program?
How do you find debugging?
Are you a victim of the "semi-colon" character?


Let me know your thoughts about Debugging a program on the comments below  Very Happy


Last edited by Admin on Fri Oct 13, 2017 3:22 am; edited 2 times in total

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by ligaya on Fri Oct 13, 2017 3:02 am

That's the hardest part when you program. Debugging. Neutral i h8

ligaya
Member
Member

Posts : 4
Join date : 2017-10-13

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Admin on Fri Oct 13, 2017 3:06 am

Yas, ikr. Every programmers knows the struggle.pale Have you try creating a program using JavaScript?

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by ligaya on Fri Oct 13, 2017 3:12 am

Admin wrote:Yas, ikr. Every programmers knows the struggle.pale  Have you try creating a program using JavaScript?
Yes, as well as C++. Very Happy Very Happy

ligaya
Member
Member

Posts : 4
Join date : 2017-10-13

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Admin on Fri Oct 13, 2017 3:15 am

May i ask what are the errors you find out after you debug your program? Laughing

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by ligaya on Fri Oct 13, 2017 3:20 am

Uhmm, just like with the common errors, some mispelled words, wrong declaration of variable, and ofcourse the legendary semi-colon. -_-

ligaya
Member
Member

Posts : 4
Join date : 2017-10-13

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Admin on Fri Oct 13, 2017 3:29 am

Awww, that hurts. Laughing Laughing anyway, any advice for aspiring programmers like you when it comes to debugging a program?

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by ligaya on Fri Oct 13, 2017 3:32 am

Thank you for that wonderful question, Admin. As much as possible be careful on writing codes, so you can easily debug it when error occur. Because as stated above ❝ Errors can (will) happen, every time you write some new computer code. ❝ and i believe it's true. That would be all, and I Thank you!!

ligaya
Member
Member

Posts : 4
Join date : 2017-10-13

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Admin on Fri Oct 13, 2017 3:40 am

Very well said, candidate no. 1. Very Happy No, kidding aside, yes it's true we always need to be careful when writing computer codes. There are some platforms that are not so case sensitive, but we must always put in mind that in whatever environment we program, we always have to lessen the error.

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by chae on Sun Oct 15, 2017 12:31 am

Debugging is really hard but you can easily do it, through the Java Editor, where in you debug a program line by line.

chae
Master
Master

Posts : 8
Join date : 2017-10-14

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Athena on Sun Oct 15, 2017 12:58 pm

whenever i heard the word debugging, i thought it was fixing viruses and etc.
thankyou for telling us the short yet, easy to udnerstand meaning of it.

Athena
Newbie
Newbie

Posts : 1
Join date : 2017-10-15

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Admin on Sun Oct 15, 2017 7:55 pm

Athena wrote:whenever i heard the word debugging, i thought it was fixing viruses and etc.
thankyou for telling us the short yet, easy to understand meaning of it.

You're always welcome, i'm glad you that you have learned something from this forum. You may also read comments for further discussions. So stay tuned Smile

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by Liza on Mon Oct 16, 2017 7:38 pm

ligaya wrote:That's the hardest part when you program. Debugging. Neutral i h8

I agreed with you ligaya ! it was the superduper hardest part in programming. #debugging </3

Liza
Master
Master

Posts : 7
Join date : 2017-10-16

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Liza on Mon Oct 16, 2017 7:41 pm

Ma'am Can you give us tips on how to debug our program? thank you in advance Smile

Liza
Master
Master

Posts : 7
Join date : 2017-10-16

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by janella on Mon Oct 16, 2017 7:59 pm

hi maam justine .. what is the best way of debbuging?

janella
Member
Member

Posts : 3
Join date : 2017-10-16

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Nadine Lust on Mon Oct 16, 2017 8:22 pm

Would you mind to share with us the common errors you encountered in debugging a program?

Nadine Lust
Master
Master

Posts : 8
Join date : 2017-10-16

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Admin on Tue Oct 17, 2017 11:09 am

Nadine Lust wrote:Would you mind to share with us the common errors you encountered in debugging a program?

Well according to cprogramming.com most of the common programming mistakes are:

1.Undeclared variables
2. Undeclared Functions
3. Uninitialized variables
4. Extra Semicolons
5. Misusing the && and || operators
6. Using a single equal sign to check equality


Personally, i find these common mistakes true. also "7. Mispelled Words/Variables" Smile
Thanks for asking, Nadine! :*

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by Admin on Tue Oct 17, 2017 11:19 am

chae wrote:Debugging is really hard but you can easily do it, through the Java Editor, where in you debug a program line by line.

Yes, chae that's true. But do you have hacks in debugging a program?

Admin
Master
Master

Posts : 20
Join date : 2017-09-15
Age : 19

View user profile http://justine.forumotion.asia

Back to top Go down

Re: JavaScript Debugging

Post by chae on Tue Oct 17, 2017 11:24 am

Liza wrote:Ma'am Can you give us tips on how to debug our program? thank you in advance Smile

i usually do debugging where i review each line. "line by line"
If you only have short codes i recommend to debug your program line by line, it works for me ~_^
but if you have longer one, you may use a bug tracker.

TIP: Make use of comments to avoid confusion.

chae
Master
Master

Posts : 8
Join date : 2017-10-14

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by chae on Tue Oct 17, 2017 11:29 am

janella wrote:hi maam justine .. what is the best way of debbuging?

Hi janella! well, i just find out this one.

How do you debug Javascript?

1. In Internet Explorer 9, load the example.
2. Press F12 to open the F12 tools, and click the Script tab.
3. In the left pane, scroll to the first function, right-click the line that says "var a = 5;", and click Insert breakpoint. ...
4. Click Start debugging, and then on the webpage in the browser, click the Run button.

It works.

chae
Master
Master

Posts : 8
Join date : 2017-10-14

View user profile

Back to top Go down

oh i see. I hope it would'nt stress me out once i debug my program. thank you for sharing this with us :)

Post by Nadine Lust on Tue Oct 17, 2017 9:33 pm

Admin wrote:
Nadine Lust wrote:Would you mind to share with us the common errors you encountered in debugging a program?

Well according to cprogramming.com most of the common programming mistakes are:

1.Undeclared variables
2. Undeclared Functions
3. Uninitialized variables
4. Extra Semicolons
5. Misusing the && and || operators
6. Using a single equal sign to check equality


Personally, i find these common mistakes true. also "7. Mispelled Words/Variables" Smile
Thanks for asking, Nadine! :*

Nadine Lust
Master
Master

Posts : 8
Join date : 2017-10-16

View user profile

Back to top Go down

Re: JavaScript Debugging

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum