xp178171640
V2EX  ›  问与答

请教个 Visual Studio 2015 中的问题: 使用的是 C++ 当确定触发断言时,比如直接使用 assert(false),程序不弹出 Debug Error 的对话框,直接退出。 该怎么设置才能让它弹出对话框呢

  •  
  •   xp178171640 · Oct 28, 2019 · 1855 views
    This topic created in 2422 days ago, the information mentioned may be changed or developed.
    3 replies    2019-11-05 13:34:46 +08:00
    ysc3839
        1
    ysc3839  
       Oct 28, 2019
    Debug 版本才会弹出吧?
    xp178171640
        2
    xp178171640  
    OP
       Oct 28, 2019
    @ysc3839 对啊 肯定是 debug 版本啊 assert 在 release 版本是无效的。
    xp178171640
        3
    xp178171640  
    OP
       Nov 5, 2019
    已找到答案!!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2785 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:38 · PVG 23:38 · LAX 08:38 · JFK 11:38
    ♥ Do have faith in what you're doing.