java - Non-line dependent conditional breakpoints -


Is it possible to set a breakpoint so that after the program has stopped execution, an instruction has some condition True ?

In a class, there is a variable named currency and I want to create a breakpoint to stop the program on any line after currency == 20 . I do not know the line number where currency is changed, so it would be like putting a breakpoint in my class [ad's every line ]. <<> currency changes).

Is there a way to accomplish this (in addition to adding a breakpack to each line)?

I am using NetBen, but any other IDE solution is welcome.

There is a link to setting conditional breakpoint in netbense:

Related Text:

In netbense, create a breakpoint, right click on the small pink square which is the symbol of the brake, click on "customize" when the customized dialog comes, check "condition" and position fill. The above is an example of this dialog in netbense.

They also cover Eclipse and Jediwalier.

Edit : In response to your comment - No, the way you want it can not be done. The way the debugger sets a breakpoint is by changing a byte in the instruction where the breakpoint is set. When the instruction is evaluated, the presence of that byte is controlled by the debugger, which changes the byte with whatever it was before then. When the execution starts again, the debugger directs the pointer to the direction in which the breakpoint was set.

Applying a conditional breakpoint on one line is easy - when the debugger has a control transfer, it only checks the situation, and if it is not true, then it will automatically execute again Starts.

So, if you do not want to enclose conditional breakpoint in a row, how will it work? It must be linked to each row (as you would guess that you would otherwise need to get this effect otherwise) I did not need to do this, but I think it would be undesirable because it will slow down the execution of the program.

A better way is that you can use your IDEE to search through code for all instances of currency, where it can be determined.

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -