I'm running a nodejs script that's taking a long time. It runs a very long for loop and does some calculations. At the end it will display the answer. The answer is probably not 42 but a 5 digit number. I removed the console.log messages that displays what it's doing to make it run faster.
I'm wondering how far it's gotten. Is there any way to peek into the process and see how far in the loop it is, or what values are contained within any of the variables? I don't want to have to interrupt it because I ran it with the time command to calculate how long it took to get the answer.
It took about 9 minutes to finish when it looped 1 billion times. How long do you think it will take to finish looping 1 trillion times?