diff --git a/content/meta/index.json b/content/meta/index.json index dfbba904c..c46cd4977 100644 --- a/content/meta/index.json +++ b/content/meta/index.json @@ -6378,5 +6378,11 @@ "node.b71f8b90-7636-4e13-b31a-e7ba42eb94f7": [ "user.b8966985-d4b2-42a7-a319-2e94ccfbb849", "file.85ac0ba1-80de-478e-a3f4-9bd1f003348e" + ], + "node.d5d38a64-f226-42e0-8691-6c1b128435bf": [ + "user.b8966985-d4b2-42a7-a319-2e94ccfbb849" + ], + "path_alias.8941a0dc-4d03-4a42-a647-8d20898ac224": [ + "node.d5d38a64-f226-42e0-8691-6c1b128435bf" ] } \ No newline at end of file diff --git a/content/node.d5d38a64-f226-42e0-8691-6c1b128435bf.json b/content/node.d5d38a64-f226-42e0-8691-6c1b128435bf.json new file mode 100644 index 000000000..4a2057f93 --- /dev/null +++ b/content/node.d5d38a64-f226-42e0-8691-6c1b128435bf.json @@ -0,0 +1,93 @@ +{ + "uuid": [ + { + "value": "d5d38a64-f226-42e0-8691-6c1b128435bf" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "daily_email", + "target_type": "node_type", + "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" + } + ], + "revision_timestamp": [ + { + "value": "2025-05-16T20:12:19+00:00" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" + } + ], + "revision_log": [], + "status": [ + { + "value": true + } + ], + "uid": [ + { + "target_type": "user", + "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" + } + ], + "title": [ + { + "value": "Don't dump. Write a test." + } + ], + "created": [ + { + "value": "2025-05-15T19:54:03+00:00" + } + ], + "changed": [ + { + "value": "2025-05-16T20:12:19+00:00" + } + ], + "promote": [ + { + "value": false + } + ], + "sticky": [ + { + "value": false + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "path": [ + { + "alias": "", + "pid": null, + "langcode": "en" + } + ], + "body": [ + { + "value": "
How often do you use functions like You want to check the type or value of something, so you add the debug code and reload the page.<\/p> If you don't resolve it on the first attempt, you change it or add more debugging lines which, hopefully, you'll remember to clean up before committing your code.<\/p> This is a time-consuming process, especially if the code you're debugging isn't easy to trigger.<\/p> Maybe it only happens when you've submitted a long form, so you need to manually complete the form each time you want to debug it, if certain steps have already happened or the application state is a certain way.<\/p> Instead, consider writing an automated test.<\/p> They can be run when needed without needing to manually fill in forms or complete complex steps, and become a permanent part of the codebase rather than something that's only added temporarily whilst debugging.<\/p> They can be run manually by Developers, automatically in a CI pipeline and serve as documentation and examples.<\/p> Don't dump. Test.<\/p>var_dump<\/code>,
dump<\/code>,
dd<\/code> or
console.log<\/code> to debug an issue?<\/p>