0

Can I number all possible outcomes of a code consecutively?

Dear learners, I am working on a huge code with more than a hundred possible outcomes. The output will look the same, but I need to see how this output was produced in order to work on errors in the codes. Therefore I need some reference to every output in the code. Is it possible to number the outputs? I tried to have a counter with n=n+1 for every function in the code, and n being printed in the output. However, that can only count the number of steps until the output was reached, since I can not count the functions that were not used for that specific outcome. Thank you for your help!

1st Oct 2018, 11:30 AM
Joseph.Atzinger
2 Antworten
+ 1
I find it hard to imagine what exactly happens in your code just by that description. Do you want to examine how every step in the program plays out, which function is used and which not? Maybe go through your code with a debugger (even the IDLE one) where you can watch the process and the data step by step?
1st Oct 2018, 2:04 PM
HonFu
HonFu - avatar
0
thank you for your thoughts, the code works a little bit like a tree chart. And i need to be able to follow which of the branches is being used for the output after running the programm in order to see if it is properly working, or where the mistake lies.
2nd Oct 2018, 5:52 AM
Joseph.Atzinger