[DiscordArchive] how do you guys debug release mode only bugs in C++ ? just add a bunch of logs/prints ?
[DiscordArchive] how do you guys debug release mode only bugs in C++ ? just add a bunch of logs/prints ?
Archived author: Titi • Posted: 2024-10-20T18:15:08.636000+00:00
Original source
how do you guys debug release mode only bugs in C++ ? just add a bunch of logs/prints ?
Archived author: Deamon • Posted: 2024-10-20T18:21:42.732000+00:00
Original source
and use MSVC RelWithDebInfo
Archived author: Deamon • Posted: 2024-10-20T18:22:20.583000+00:00
Original source
I write code in Clion + gcc. But for finding and fixing bugs I go MSVC
Archived author: Deamon • Posted: 2024-10-20T18:23:05.230000+00:00
Original source
also, for performance optimizations, I go to MSVC as well. It's profiler is unmatched on windows
Archived author: Titi • Posted: 2024-10-20T18:23:14.946000+00:00
Original source
I always use relwithdebinfo for the crashlogs, in this case it's not a crash just bad behavior, how can it help ?
Archived author: Titi • Posted: 2024-10-20T18:24:13.894000+00:00
Original source
I'm assuming it's most likely some uninitialized variable that's behaving differently in release mode
Archived author: Deamon • Posted: 2024-10-20T18:25:55.782000+00:00
Original source
Yeah
Archived author: M'Dic • Posted: 2024-10-20T18:44:30.925000+00:00
Original source
Debug always initializes everything. So if u have a issue in just release then add some prints/logs/effects of somekind for debug. Its what we do with those edge cases.
Archived author: Duran • Posted: 2024-10-20T18:47:51.891000+00:00
Original source
TC_LOG_ERROR("x", "{}", x) everywhere <:kekw:1115251543751532674>
Archived author: M'Dic • Posted: 2024-10-20T18:56:36.089000+00:00
Original source
Oh sometimes dependi g on the situstion i just have it do a player say or chat message