I even realized that this CMDebug was cloned from MS ISE and that's why it's not intimately understood. You tweeked it but you didn't write it.
Just to be clear, I had nothing to do with writing any of this. I'm just an ordinary user trying to help. Rex wrote all of Take Command/TCC/CMDebug etc. and understands it better than any of us ever will.
Oh the entire script won't stop at a breakpoint WAD.
There was an issue, which I reported separately and which Rex has a fix for, related to Breakpoints not always working if they were loaded from a saved .bp file from a previous debugging session. Until that fix is released, I found that if I clear all breakpoints loaded from previous sessions and manually reset the breakpoints I want, then I have seen them always work. Not sure if that is the issue you were running into or not.
Can't see the value by hovering over any vairable in and If of set statement WAD
My experience shows me that even though an if Statement is a single statement, each component of it is parsed and executed sequentially when you single step through the code in the debugger. If you are single stepping through the code and hovering over a variable before the if statement gets to the point where a variable is set, then you will not see a value. Could this be what you are experiencing?
you're saying that the "2" is stuck in memory
Based on Rex's description, I think the Combo box for Batch arguments serves two purposes. (1) It shows you what arguments were passed in on the command line which started the debugger (2) It allows you to change the arguments
before you start a debugging session.
After you start a debugging session, the place to change the arguments is in the Batch Parameters pane.
If there is a bug or opportunity for improvement it would be to prevent changes to the ComboBox once a debugging session has been started to avoid confusion with where changes can be made.
That's why I suggested echoing the actual parameter (%1) to the console before the if statement - so you can see what is being used.
@rconn please correct me if I've got any of this wrong.