You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何禁用QT Creator的警告性异常日志记录功能?

How to Disable Annoying First-Chance Exception Logs in Qt Creator

Got it, let's fix that frustrating issue where Qt Creator spams first-chance exception logs everywhere—those Exception at 0x7ffad5e54008, code: 0xe06d7363 messages are definitely a distraction. Here are the most effective ways to turn them off:

1. Adjust Debugger Exception Capture Settings

This is usually the root cause, since first-chance exceptions are handled by the debugger by default:

  • Open Qt Creator's Tools > Options > Debugger
  • Select your active debugger (GDB, LLDB, or CDB for MSVC)
  • Look for the Exceptions section:
    • For GDB/LLDB: Uncheck the box labeled "Show first-chance exceptions" (wording might vary slightly by Qt Creator version)
    • For CDB (MSVC): Add the command sx -c to the "Additional startup commands" field. This tells the debugger to suppress first-chance exception notifications.

2. Filter Compiler Output

If you still see logs in the compiler output panel, filter them out:

  • Go to the Compile Output tab in Qt Creator's bottom panel
  • Click the funnel icon (filter button) in the top-right corner of the panel
  • Uncheck any options related to "Exceptions" or "Debug Messages" to hide those entries from view.

3. Tweak MSVC Compiler Flags (If Using MSVC)

Since your error code 0xe06d7363 is specific to MSVC's C++ exceptions, adjusting compiler flags can help reduce unnecessary exceptions:

  • Open your project's Build Settings > Compiler > MSVC
  • Under "Compiler Options", add the flag /EHsc—this configures the compiler to only handle standard C++ exceptions, cutting down on non-critical exception triggers.

4. Reduce Output Verbosity

As a last resort, dial back Qt Creator's overall output level:

  • Go to Tools > Options > Environment > Output
  • Set the "Output verbosity" dropdown to "Minimal" or "Warnings only" to suppress low-priority logs.

Most users find that adjusting the debugger exception settings (step 1) resolves the issue immediately. If you hit any snags with the steps, feel free to follow up!

内容的提问来源于stack exchange,提问作者Ráfagan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.25 07:03:25