Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用“Step into”调试代码,但我的代码的第一部分需要 TextBox 打开另一个工作簿。因此,当 TextBox 出现时,“Step Into”就停止了(我的意思是没有机会通过按钮选择文件或通过键盘填充)。 是否有另一种方法可以逐步调试代码或避免这种情况? 提前致谢!
您可以(临时)添加代码以导致中断
Debug.Assert <Some Condition that returns FALSE when you want to break>
例如
Debug.Assert False