I am constantly chasing errors in my code and I place message boxes in stating "Line xyz value = " etc.
But when I change my code I am constantly having to push the numbers and can't find them when I am finished or miss one here and there.
Just out of curiosity, but when the error flags in the JIT debugger it can tell me the module and the line number. Does anyone know if I can obtain that so that as the line numbers change so will my messagebox?
This would be a fantastic help. The reason I ask is because I am programming in AutoCAD and have no ability to debug in real time.
Any help would be appreciated.
CodePudding user response:
Use CallerLineNumberAttribute
as an attribute on a parameter for a MsgBox
wrapper.