bleg: debugging tools
Feb. 18th, 2007 02:22 pmI would keep 2 versions of the source: the current one, and a previous one (updated at certain "checkpoints", when I am confident it works correctly), and run them in parallel.
I want tools that would help answer the following questions:
* Compared to the checked version, at which point (i.e. line number) in the execution does a variable get a different value? At which point does the program branch differently?
Also:
* provide a way for managing prints in the two programs simultaneously: prints that appear in one should appear in the other.
* you should get the same "random" numbers in both runs. Is there some way to rig java.Math.random()?
Any such tools for Java?
I want tools that would help answer the following questions:
* Compared to the checked version, at which point (i.e. line number) in the execution does a variable get a different value? At which point does the program branch differently?
Also:
* provide a way for managing prints in the two programs simultaneously: prints that appear in one should appear in the other.
* you should get the same "random" numbers in both runs. Is there some way to rig java.Math.random()?
Any such tools for Java?
(no subject)
Date: 2007-02-18 08:00 pm (UTC)(no subject)
Date: 2007-02-20 03:22 am (UTC)(no subject)
Date: 2007-02-20 08:49 am (UTC)I'm not aware of any tools that will tell you specifically where in a test-run a different branch/value occurs. All regression test systems I know of allow you to write a test, and specify an expected result. Running the test then passes or fails, depending on whether the actual result matches the expected result.
(no subject)
Date: 2007-02-20 09:49 am (UTC)(no subject)
Date: 2007-02-23 01:57 am (UTC)