Fiveable
Fiveable
pep
Fiveable
Fiveable

or

Log in

Find what you need to study


Light

4.5 Informal Code Analysis

1 min readnovember 15, 2020

Athena_Codes

Athena_Codes

Athena_Codes

Athena_Codes

What is Informal Code Analysis?

Informal code analysis is done when you want to see how the program is running step by step. This is also known as tracing. To do this, go through the code line by line, keeping track of how many times the code runs, all variable values, and what is printed to the console. This is a very important skill to use!

Debbuging

Another part of this is debugging. Debugging is the same as tracing, but it is done on the computer with the IDE of your choice. With debugging, you have a panel that displays the variables in the program and their values in real-time as the program is run. When we use the debugging panel, you can even sometimes change the variable values to see what may happen to the code as well. We can also have breakpoints in debugging as well. These breakpoints are points that you want the program to manually stop at. This is useful when you want to see the values of different variables at a certain point in the code. After, we can go line-by-line through the rest of the code to see how the variables change or see how the variables change after every iteration of a loop.

https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2F-BKGm6tOQeR0O.png?alt=media&token=f992a9a5-9961-45ec-947a-6fe5186ecfe5

A demonstration of breakpoints. Courtesy of Java Code Geeks.

https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2F-ZIZ8EEWqdFpd.png?alt=media&token=c26b7ab4-b8de-476e-bbbf-2c32e84df621

An example of the debug panel. Courtesy of Stack Overflow.

4.5 Informal Code Analysis

1 min readnovember 15, 2020

Athena_Codes

Athena_Codes

Athena_Codes

Athena_Codes

What is Informal Code Analysis?

Informal code analysis is done when you want to see how the program is running step by step. This is also known as tracing. To do this, go through the code line by line, keeping track of how many times the code runs, all variable values, and what is printed to the console. This is a very important skill to use!

Debbuging

Another part of this is debugging. Debugging is the same as tracing, but it is done on the computer with the IDE of your choice. With debugging, you have a panel that displays the variables in the program and their values in real-time as the program is run. When we use the debugging panel, you can even sometimes change the variable values to see what may happen to the code as well. We can also have breakpoints in debugging as well. These breakpoints are points that you want the program to manually stop at. This is useful when you want to see the values of different variables at a certain point in the code. After, we can go line-by-line through the rest of the code to see how the variables change or see how the variables change after every iteration of a loop.

https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2F-BKGm6tOQeR0O.png?alt=media&token=f992a9a5-9961-45ec-947a-6fe5186ecfe5

A demonstration of breakpoints. Courtesy of Java Code Geeks.

https://firebasestorage.googleapis.com/v0/b/fiveable-92889.appspot.com/o/images%2F-ZIZ8EEWqdFpd.png?alt=media&token=c26b7ab4-b8de-476e-bbbf-2c32e84df621

An example of the debug panel. Courtesy of Stack Overflow.



© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.