On Thursday, July 28, 2022 at 7:46:25 AM UTC+1, Jivanmukta wrote:
> Although the file is loaded correctly by method open(), I have a problem
> of spoilt string in source_lines[813], I mean get_next_line() returns
> spoilt line. I don't know the moment of time source_lines[813] is
> damaged - I use VSCodium but conditional breakpoints don't work.
> Please help: how to get the point in code at which source_lines[813] is
> damaged.
If your compiler is either 'g++' or 'clang++', then compile
with the following command line options:
-fsanitize=address -D_GLIBCXX_DEBUG
Run your program and you will get debugging info on screen
when there's an invalid access.