File enable_stack_trace_line_numbers-symbol_level.patch of Package nodejs-electron
Reducing symbol_level is a kludge and should have no effect on generated code.
--- src/base/BUILD.gn.orig
+++ src/base/BUILD.gn
@@ -2531,11 +2531,6 @@ buildflag_header("debugging_buildflags")
enable_commandline_sequence_checks =
(is_debug || dcheck_always_on) && !is_android
- if (enable_stack_trace_line_numbers) {
- assert(
- symbol_level > 0,
- "symbol_level must be set to greater than 0 for source line numbers.")
- }
flags = [
"DCHECK_IS_CONFIGURABLE=$dcheck_is_configurable",
--- src/build/config/logging.gni.orig
+++ src/build/config/logging.gni
@@ -11,5 +11,5 @@ declare_args() {
enable_log_error_not_reached =
is_chromeos_ash && !(is_debug || dcheck_always_on)
- enable_stack_trace_line_numbers = symbol_level > 0
+ enable_stack_trace_line_numbers = true
}