1

我正在为一个项目使用旧编译器(Microsoft Visual C++ 6.0 (1998)),我想知道是否有一种方法可以在 .c 文件的每个函数中自动放置断点,或者是否有跳转到如果您调试或查看代码,则下一个声明的函数。

谢谢!

4

2 回答 2

0

要设置断点,请将光标放在所需位置并按 F9(或使用鼠标右键 | 插入/删除断点)。

键盘命令摘要

F5      Start program execution, run until a breakpoint is reached.
Shift-F5        Stop debugging and return to program edit mode.
Ctrl-Shift-F5       Restart the program in debugging mode.
F9      Insert, disable or remove a breakpoint.
Shift-F9        Get the value of a variable.
F10     Execute the current statement or function call.
Ctrl-F10        Run the program to the point where the cursor is.
F11     If the current statement is a function call, step into the function.
Shift-F11       If executing a function, run to the end and return to the calling statement.
于 2013-07-03T12:35:30.043 回答
0

您可以通过添加新断点(调试->新断点)并编写类似 CMyClass::* 的内容来中断特定类的每个函数

相关帖子:http: //blogs.msdn.com/b/habibh/archive/2009/09/10/class-breakpoint-how-to-set-a-breakpoint-on-ac-class-in-the-visual -studio-debugger.aspx

我认为这应该适用于 VS6

于 2013-07-03T12:46:39.937 回答