I just discovered the "Edit Breakpoint..." options that appear when you right click a breakpoint. It's occurred to me that this allows me to easily insert debug messages without modifying my source files at all.
I have a loop that I'm expecting will be run approximately 8.1 B times... I don't want it to a log every iteration through the loop, but every 10 Kth iteration through the loop.
I figured that simply setting the "Ignore x Times Before Stopping" option would do this for me, but that causes it to stop on iteration 10,000, 10,001, 10,002, and so on... not terribly helpful.
I realize that I could probably utilize the condition field some how, but it's not very easy (I have no iteration counting variable right now... and the whole point here is to avoid modifying code for the sole point of debugging.)
So... what am I missing? What's the simplest thing I can do here without modifying my code to make it so that it logs every 10Kth iteration only?
I have a loop that I'm expecting will be run approximately 8.1 B times... I don't want it to a log every iteration through the loop, but every 10 Kth iteration through the loop.
I figured that simply setting the "Ignore x Times Before Stopping" option would do this for me, but that causes it to stop on iteration 10,000, 10,001, 10,002, and so on... not terribly helpful.
I realize that I could probably utilize the condition field some how, but it's not very easy (I have no iteration counting variable right now... and the whole point here is to avoid modifying code for the sole point of debugging.)
So... what am I missing? What's the simplest thing I can do here without modifying my code to make it so that it logs every 10Kth iteration only?
Last edited: