In class we are debugging java with netbeans and I have some

In class we are debugging java with netbeans and I have some questions please.

A)When debugging a program, what must be set in order to cause the execution of the pgram to be paused?

B) What would happen if you execute a step-out debug function inside a program\'s main method?

    C) Is it possible to debug using only print statements? If so, how?

Solution

1) While debugging a java application in netbeans you should use breakpionts and suspend in order to cause the program to paused during debugging.

2) This will execute remaining lines of a the main function. The next statement displayed is the statement following the procedure call. All of the code is executed between the current and the final execution points.

3) Yes you can debug using print statements , System.out.print can be used to print messgaes values of variables used etc and it will print those to console.

In class we are debugging java with netbeans and I have some questions please. A)When debugging a program, what must be set in order to cause the execution of t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site