API stack backtrace

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.

API stack backtrace

Postby ajitchavan » Thu Jul 09, 2020 6:13 am

Hi Team,

I need to backtrace API call stack of chromium/cef to my application and vice versa.

My application is crashing and there is no way I can debug it as I do not get core dump and can not use gdb.

Is there any way I can get to see what all API's are called from my application and what all callbacks I have received.
ajitchavan
Techie
 
Posts: 10
Joined: Mon Mar 16, 2020 7:03 am

Re: API stack backtrace

Postby Czarek » Thu Jul 09, 2020 6:30 am

You can download debug symbols from where you've obtained CEF binaries. What do you mean you cannot use gdb?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1869
Joined: Sun Nov 06, 2011 2:12 am

Re: API stack backtrace

Postby ajitchavan » Thu Jul 09, 2020 8:17 am

Czarek wrote:You can download debug symbols from where you've obtained CEF binaries. What do you mean you cannot use gdb?


Thank you Czarek, actually my visual studio code can not connect remotely to server to browse code so can not use it. So can not use gdb to debug code.
ajitchavan
Techie
 
Posts: 10
Joined: Mon Mar 16, 2020 7:03 am

Re: API stack backtrace

Postby Czarek » Thu Jul 09, 2020 12:04 pm

CEF has a built-in crash reporting called Crashpad, see cef_crash_util.h.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1869
Joined: Sun Nov 06, 2011 2:12 am

Re: API stack backtrace

Postby ajitchavan » Fri Jul 10, 2020 4:12 am

Czarek wrote:CEF has a built-in crash reporting called Crashpad, see cef_crash_util.h.


On wiki https://bitbucket.org/chromiumembedded/ ... porting.md, I see "The crash reporting capability in CEF/Chromium is implemented using Crashpad on Windows and macOS, and Breakpad on Linux".
Our application can be used from windows, mac and linux. and we use linux to develop and build it. In that case I need to configure breakpad but not crashpad.

Please correct me if wrong.
ajitchavan
Techie
 
Posts: 10
Joined: Mon Mar 16, 2020 7:03 am

Re: API stack backtrace

Postby Czarek » Fri Jul 10, 2020 4:52 am

Chromium documentation confirms it: https://www.chromium.org/developers/crash-reports
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. I'm available for contract work, see my resume.
User avatar
Czarek
Virtuoso
 
Posts: 1869
Joined: Sun Nov 06, 2011 2:12 am

Re: API stack backtrace

Postby ajitchavan » Fri Jul 10, 2020 5:20 am

Czarek wrote:Chromium documentation confirms it: https://www.chromium.org/developers/crash-reports


Thank you Czarek, this documentation looks good. will follow it.
ajitchavan
Techie
 
Posts: 10
Joined: Mon Mar 16, 2020 7:03 am


Return to Support Forum

Who is online

Users browsing this forum: Osspial and 42 guests