Diacone Frost on Nostr: Well, usually it means that you don't understand the codebase. You don't know the ...
Well, usually it means that you don't understand the codebase. You don't know the structure and data flow. You have poor logging and "embedded" debugging code inside.
Focusing on errors themselves, stack traces and good old printf() is much better for me then getting lost in some local context bs.
The overall behavior is what I'm interested in. You need to understand the code.
Not to mention that you never find things like race conditions etc.
Debuggers always've been my last resort or learning tool.
Published at
2024-09-06 17:35:27Event JSON
{
"id": "d6afcf605abc1c739fea3e3ce85eb9705028d69c80d0adeb01f1b8b60df49cc3",
"pubkey": "8633073b8567da97ad119fedd9716154aa283234cbb7d28d5131daa077d1cf7a",
"created_at": 1725644127,
"kind": 1,
"tags": [
[
"e",
"b89e4379aceb2a64c18331870e3fec6b3385dced423ede2cbeffa641152e4b8f",
"",
"root"
],
[
"e",
"41e21bc119fc6c925cc1b05ee7518f66d1f3641190db947127cb0c2151d78cb3"
],
[
"e",
"368d1e98a694c39a3f748f1224af0c270d345a4b4f28a2b40fda96b65647e49f",
"",
"reply"
],
[
"p",
"dd664d5e4016433a8cd69f005ae1480804351789b59de5af06276de65633d319"
],
[
"p",
"8633073b8567da97ad119fedd9716154aa283234cbb7d28d5131daa077d1cf7a"
],
[
"p",
"70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9"
]
],
"content": "Well, usually it means that you don't understand the codebase. You don't know the structure and data flow. You have poor logging and \"embedded\" debugging code inside.\n\nFocusing on errors themselves, stack traces and good old printf() is much better for me then getting lost in some local context bs.\n\nThe overall behavior is what I'm interested in. You need to understand the code.\n\nNot to mention that you never find things like race conditions etc.\n\nDebuggers always've been my last resort or learning tool.",
"sig": "5efa4f28ec94102884b3cb51a523c3c951e8e9681350519eaa6191043ca30a4edcf233f06e2a5a9e7882a722377c24cc566b9d781a55730cb600e65fa039c1b8"
}