|
ill give you my printf when you pry it from my cold, segfaulted hands
|
# ¿ Oct 19, 2019 21:05 |
|
|
# ¿ May 15, 2024 16:18 |
|
I use the debugger as much as I can but there are a lot of situations where the debugger isn't practical at all like if a bug is caused by the interactions of several clients in a multiplayer game your only way to figure it out is logs and perhaps a frame by frame replay of a video capture of the bug (possibly with debug prints/draw enabled)
|
# ¿ Oct 21, 2019 14:14 |
|
you can use either / or \ as path separators // and \\ are escape sequences that let you include a / or a \ in a filename or directory name
|
# ¿ Oct 21, 2019 17:35 |
|
Zlodo posted:you can use either / or \ as path separators i meant to post this in the yosos thread btw, it isn't my secret printf based debugging techinque
|
# ¿ Oct 21, 2019 22:02 |
|
Cybernetic Vermin posted:debuggers could be made a lot more user-friendly really. Yeah. Data breakpoints for instance a super useful but in visual studio (considered by many as having the best c++ debugger ui) you have to input the address (in hex) and size of what you want to break on usually you do that by adding a watch on it, copying the expression, wrapping it into a &() to get the address, and then copying that in the data breakpoint window so they basically already have everything they need to implement a "add data breakpoint" in the context menu when right clicking a variable, and they have had all that for years, but nope, we still have to enter the address by hand the again it took them like 15 years just to make the project properties window resizable
|
# ¿ Oct 24, 2019 10:23 |
|
there are definitely situations when you need a super complicated break condition that you just cant fit into a conditional breakpoint and you can just call DebugBreak() inside of a if instead
|
# ¿ Oct 24, 2019 16:59 |
|
sometimes code interacts with external stuff not controlled by the debugger and that is sensitive to timing (hardware, servers, other clients in peer to peer applications, etc.)
|
# ¿ Oct 25, 2019 03:17 |
|
|
# ¿ May 15, 2024 16:18 |
|
lldb is ok if you use it with a gui (like a vscode addon) although we use it at work from inside visual studio on one of our target platforms and stepping is slow as hell, and for once I dont think it's visual studios fault
|
# ¿ Oct 26, 2019 11:36 |