当应用程序在 Debug模式下停止并且我对代码进行更改时 有没有办法在不停止应用程序的情况下保存更改后的代码?
最佳答案
尽管 VB6 IDE 本身不提供此功能,该 IDE 有一个名为 MZTools 的插件。添加此功能已经存在很长时间了。
我个人已经使用MZTools 3.0很多年了,而且效果非常好。
它的帮助系统是这样说的:
Shortcut To Save File At Debug-Time
The Shortcut To Save File At Debug-Time feature allows you to define a keyboard shortcut (Options window, Shortcuts tab) to save the selected file at debug-time. The Visual Basic IDE does not allow to save files at debug-time, but often it is useful to save the modifications that you have made to the source code at debug-time.
Remarks:
This feature is not available in the VBA version of MZ-Tools. This feature only works at debug-time. Since Visual Basic disables buttons or menus of add-ins at debug-time, the only way to save a file at those times is through a keyboard shortcut. The file must be previously saved at design-time, that is, MZ-Tools does not prompt for a name to save the file (it shows an error message instead).
这是我如何在本地配置它的选项窗口:
请注意,MZTools 在版本 3 中最初是免费的,后来他们切换到付费版本;如果我最初没有获得 v3,那么它是非常值得付费的,不仅仅是为了这个功能。
关于vb6 - 如何在vb6 Debug模式下保存代码更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70703546/