no output in OnConsoleMessage()

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

no output in OnConsoleMessage()

Postby midi » Thu Apr 07, 2016 10:45 pm

Code: Select all
class CefDisplayHandler : public virtual CefBase {
 public:
  ...
 
  ///
  // Called to display a console message. Return true to stop the message from
  // being output to the console.
  ///
  /*--cef(optional_param=message,optional_param=source)--*/
  virtual bool OnConsoleMessage(CefRefPtr<CefBrowser> browser,
                                const CefString& message,
                                const CefString& source,
                                int line) { return false; }
};

In my OnConsoleMessage handler, I am not receiving output from JS calls like
Code: Select all
console.count();
console.time();
console.timeEnd();

only for
Code: Select all
console.log("MEOW")

But those outputs does appear in the DevTools...
Any workaround?
midi
Newbie
 
Posts: 1
Joined: Thu Apr 07, 2016 10:24 pm

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 212 guests