How to set COE (Continue On Error) for AddressSanitizer with VS2022 IDE?

Ailsa 25 Reputation points
2025-05-07T08:11:07.5+00:00

https://learn.microsoft.com/en-us/cpp/sanitizers/asan-continue-on-error?view=msvc-170

This link introduces how to use Address Sanitizer Continue On Error to find memory safety issues. But it just introduce the method for the mode of "Developer Command Prompt for VS 2022". If we need to use VS2022 IDE to build target application, how to set the COE for AddressSanitizer?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,932 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.