每当我通过 Python v3.10.4 执行任何 Python 代码(无论是否在 Visual Studio Code v1.74.2 中进行调试)时,除了代码的正常输出之外,我还会在“调试控制台”窗口中获得如下所示的输出。否则,我的所有 Python 程序此时都可以正常工作并按预期运行。
\n1 HIToolbox 0x00007ff81116c0c2 _ZN15MenuBarInstance22RemoveAutoShowObserverEv + 30\n2 HIToolbox 0x00007ff8111837e3 SetMenuBarObscured + 115\n3 HIToolbox 0x00007ff81118a29e _ZN13HIApplication11FrontUILostEv + 34\n4 HIToolbox 0x00007ff811183622 _ZN13HIApplication15HandleActivatedEP14OpaqueEventRefhP15OpaqueWindowPtrh + 508\n5 HIToolbox 0x00007ff81117d950 _ZN13HIApplication13EventObserverEjP14OpaqueEventRefPv + 182\n6 HIToolbox 0x00007ff811145bd2 _NotifyEventLoopObservers + 153\n7 HIToolbox 0x00007ff81117d3e6 AcquireEventFromQueue + 494\n8 HIToolbox 0x00007ff81116c5a4 ReceiveNextEventCommon + 725\n9 HIToolbox 0x00007ff81116c2b3 _BlockUntilNextEventMatchingListInModeWithFilter + 70\n10 AppKit 0x00007ff80a973f33 _DPSNextEvent + 909\n11 AppKit 0x00007ff80a972db4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1219\n12 AppKit 0x00007ff80a9653f7 -[NSApplication run] + 586\n13 _macosx.cpython-310-darwin.so 0x0000000110407e22 show …Run Code Online (Sandbox Code Playgroud)