16

如果我想阻止我的代码在 PC 上执行,我知道我只需要按 ctrl+break。但由于我的 Mac 没有“break”键,我不知道该怎么办?

Mac中的等价物是什么?

4

5 回答 5

25

利用⌘</kbd>. on Mac to stop the code.

于 2013-05-28T04:52:29.697 回答
3

⌘</kbd> . or ctrl ESC keys do not function exactly like on the PC. They do not break to the debugger on a modal dialog box. Use ESC ESC (Press the ESC twice) to bring up a dialog that allows you to enter the debugger at the location in code of the dialog box display. Tested in Excel VBA 2011

于 2015-09-04T17:15:21.700 回答
2

cntrl-esc 在我的 macbook pro 上的作用类似于 cntrl-break,以停止在 Windows 7 下运行的 Excel vba。

于 2015-05-07T14:16:46.360 回答
0

很抱歉让这个复活。这是谷歌搜索的第一个结果,所以我想我应该回答。

在 Mac 上的 windows VM 环境中的 IDE 中工作(例如:Visual Basic for Applications)该命令实际上是fn+esc

于 2019-04-08T18:57:50.277 回答
0

我正在使用 Mac。我使用Cmd++OptionEsc 停止我的代码。

于 2019-09-03T19:31:22.327 回答