DEBUG Build has _ITERATOR_DEBUG_LEVEL 0

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.

Re: DEBUG Build has _ITERATOR_DEBUG_LEVEL 0

Postby Staxcelrom » Mon Feb 21, 2022 7:56 am

rsharma07 wrote:
linuxcef9 wrote:Hi all, I am also getting the same error with cef branch 4664, i followed https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md. I tried above steps but still getting the same error, seems i am doing some mistake, May anyone please share the exact changes and where to apply?

Please also share the exact configuration of src\out\Debug_GN_X64\args.gn.
Thanks


I had exactly the same error. Windows 10/VS 2019.
But I won it :)
Do you have an error in VS 2019?
Staxcelrom
Expert
 
Posts: 206
Joined: Wed Jan 26, 2022 8:20 am

Re: DEBUG Build has _ITERATOR_DEBUG_LEVEL 0

Postby ssaraf » Mon Oct 16, 2023 11:45 pm

I am seeing the same issue when building my app (v5845) in Visual Studio 2022, can someone suggest the solution to fix it? What to change in args.gn?
ssaraf
Techie
 
Posts: 32
Joined: Mon Nov 09, 2020 2:18 am

Re: DEBUG Build has _ITERATOR_DEBUG_LEVEL 0

Postby ndesktop » Tue Oct 17, 2023 2:42 am

What it worked for me was to patch cef/BUILD.gn as
Code: Select all
...
# libcef_dll_wrapper target.
static_library("libcef_dll_wrapper") {
  sources = includes_common +
            gypi_paths.autogen_cpp_includes +
            gypi_paths2.includes_capi +
            gypi_paths.autogen_capi_includes +
            gypi_paths2.includes_wrapper +
            gypi_paths2.libcef_dll_wrapper_sources_base +
            gypi_paths2.libcef_dll_wrapper_sources_common +
            gypi_paths.autogen_client_side

  if (is_mac) {
    sources += gypi_paths2.libcef_dll_wrapper_sources_mac
  }

  defines = [ "WRAPPING_CEF_SHARED" ]
+  if(is_debug) {
+    defines += [ "_ITERATOR_DEBUG_LEVEL=2" ]
+    defines += [ "_HAS_ITERATOR_DEBUGGING=1" ]
+  }

  configs += [ ":libcef_dll_wrapper_config" ]
  public_configs = [ ":libcef_dll_wrapper_config" ]
...
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: DEBUG Build has _ITERATOR_DEBUG_LEVEL 0

Postby ssaraf » Tue Oct 17, 2023 5:04 am

You used the same for all the 4 configurations?
ssaraf
Techie
 
Posts: 32
Joined: Mon Nov 09, 2020 2:18 am

Re: DEBUG Build has _ITERATOR_DEBUG_LEVEL 0

Postby ndesktop » Tue Oct 17, 2023 6:53 am

ssaraf wrote:You used the same for all the 4 configurations?

Is conditioned by "if(is_debug)". So only for wrapper debug (win32, x64, arm64).
Remember what @magreenblatt said - chromium is build in release with some debug info, this applies only to libcef_dll_wrapper.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Previous

Return to Support Forum

Who is online

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

cron