Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Enable VM assertions in Fuchsia and Flutter debug modes #29458
Currently the VM does not run in debug mode when Fuchsia (dart_content_handler) or Flutter are in debug mode, because the GN variable dart_debug is only set to true for the standalone VM. This flag includes a comment saying it was to avoid making embedders too slow in their debug modes. We have since made our debug builds faster by disable heap verification by default and using -O2 instead of -O1 (gyp had long since used -O2 for debug builds, but the change to GN is more recent). We should consider always putting the VM in debug mode when the embedder is in debug mode.
Currently on Fuchsia I'm seeing assertion failures in the loader, event handler and long jump scopes.