franneck94/Vscode-C-Cpp-Runner

[Feature]: Add panel button or option in settings for sanitize memory after build

Closed this issue · 3 comments

Use "-fsanitize=address -g" its supports by GCC (G++) by default.

You can read more about it here:
https://stackoverflow.com/questions/37970758/how-to-use-addresssanitizer-with-gcc

https://stackoverflow.com/questions/64636821/how-to-stop-using-addresssanitizer

Its Windows analog of Valgrind but builtin in GCC

? Show results in current terminal or Outup of VSC

? Another variant for Win its "Dr. Memory" tool, maybe any way to implement it into your extension?

Windows GCC and MSVC also have the memory sanitizer, no need for Dr Memory.

But in general good feature request.

Implemented in #97

Thank you so much for implementation, but how to use it correctly?
Daz it enabled by default? Where i can choose sanitizer tool?