Is there a step backward operation in NetBeans during the debugging process?

In NetBeans, when you insert a Breakpoint and Debug project, it runs the code to the breakpoint and stops right at the line where we put Breakpoint. And then we can execute our code step by step. If we press F8 , which works in steps, NetBeans will execute the next line. Sometimes we want to go back to the previous executable line, because we want to change this line and see how it works.
So the question is, how can I say NetBeans Step Back (if we can call it that), so instead of executing the following line code, it does the previous line code? I remember in Visual Basic 6.0 (now I don’t know, because I don’t use it anymore) we could control the current line of execution, i.e. We could just drag the debug pointer to the desired line during debugging, and it will start executing the code right from where we placed it. Is this possible in NetBeans?

Update 1
I am using NetBeans to debug a PHP application. PHP uses php_xdebug-2.1.0RC1-5.3-vc9-nts.dll to debug PHP code.

+4
source share
2 answers

I think he meant the highest call stack pop pop.

http://wiki.netbeans.org/FaqDebugBackup

+2
source

This is not only a Netbeans question (or, say, a more general one: your IDE), it is also a debugging issue for your jvm. AFAIK, jvm does not have this function.

What may be possible (in Eclipse this) is to go to the beginning of the method, but you must be careful about the state of your objects, because you can reach a state that you will not be within normal execution.

0
source

Source: https://habr.com/ru/post/1314455/


All Articles