我在我的Win32應用程序中使用CEF3(鉻嵌入式框架),而我運行的應用程序,我得到一個奇怪的錯誤消息怪異異常我來自C#開發背景,在C++中我看不到我如何檢查我的錯誤並找出它爲什麼會抱怨我的代碼。 如何檢查錯誤信息?如果沒有 - 如何在Visual Studio中調試這類錯誤?Visual Studio的C++調用時CefBrowserHost :: CreateBrowser
此代碼觸發錯誤 -
case WM_CREATE:
{
CefRefPtr<CefClient> clientHandler = new ClientHandler();
RECT rect;
GetClientRect(hWnd, &rect);
CefWindowInfo info;
info.SetAsChild(hWnd, rect);
// Browser initialization settings.
CefBrowserSettings settings;
// Create the new browser window object asynchronously.
std::string startupUrl = "http://www.google.com/";
CefBrowserHost::CreateBrowser(info, clientHandler, startupUrl, settings);
}
break;
我不想CEF3幫助(但我會欣賞它)我只是想知道如何調試這種在Visual Studio中的錯誤。
在輸出窗口中,我只有「Test.exe觸發了一個斷點。」這對調試這個錯誤沒有幫助。我雖然關於捕獲異常並檢查它是哪個異常,但我不知道異常的類型 – Yosi
對話框中沒有顯示異常,它顯示在「Output」窗口中(它位於左下角) VS VS 2010,我不知道VS 2012)。 – user1610015
我知道,這是我看到的窗口.. – Yosi