{"id":15946452,"url":"https://github.com/knowler/break-on-element","last_synced_at":"2025-10-18T10:02:28.455Z","repository":{"id":210303855,"uuid":"726248189","full_name":"knowler/break-on-element","owner":"knowler","description":"A custom element that is a declarative MutationObserver for debugging. Instead of opening your developer tools to set these breakpoints wrap the element in the \u003cbreak-on\u003e custom element.","archived":false,"fork":false,"pushed_at":"2023-12-03T01:44:08.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T08:11:18.051Z","etag":null,"topics":["custom-elements","web-components"],"latest_commit_sha":null,"homepage":"https://knowler.github.io/break-on-element/demo","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knowler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-01T21:25:56.000Z","updated_at":"2024-10-05T21:59:39.000Z","dependencies_parsed_at":"2023-12-01T22:39:13.765Z","dependency_job_id":null,"html_url":"https://github.com/knowler/break-on-element","commit_stats":null,"previous_names":["knowler/break-on-element"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fbreak-on-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fbreak-on-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fbreak-on-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fbreak-on-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowler","download_url":"https://codeload.github.com/knowler/break-on-element/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237073136,"owners_count":19251036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-elements","web-components"],"created_at":"2024-10-07T09:21:55.847Z","updated_at":"2025-10-18T10:02:23.412Z","avatar_url":"https://github.com/knowler.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Break On Element\n\nA custom element that is a declarative `MutationObserver` for debugging.\nInstead of opening your developer tools to set these breakpoints wrap\nthe element in the `\u003cbreak-on\u003e` custom element. [See the demo](https://knowler.github.io/break-on-element/demo).\n\n## Defining\n\n```javascript\nimport { BreakOnElement } from \"https://esm.sh/gh/knowler/break-on-element/break-on-element.js?raw\";\n\nBreakOnElement.define();\n```\n\n## Usage\n\n```html\n\u003cbreak-on attributes\u003e\n\t\u003cp\u003eWill break on all attribute modifications for this element.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on attributes=\"class\"\u003e\n\t\u003cp\u003eWill break on class name modifications for this element.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on attributes=\"class id\"\u003e\n\t\u003cp\u003eWill break on class name and ID modifications for this element.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on attributes=\"class id\" subtree\u003e\n\t\u003cp\u003eWill break on class name and ID modifications for this element and its subtree.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on children\u003e\n\t\u003cp\u003eWill break on adding and removing direct descendants.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on children subtree\u003e\n\t\u003cp\u003eWill break on adding and removing all descendants.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on text\u003e\n\t\u003cp\u003eWill break on text changes in the first top-level text node.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on text subtree\u003e\n\t\u003cp\u003eWill break on all text changes within an element.\u003c/p\u003e\n\u003c/break-on\u003e\n\n\u003cbreak-on selector=\":scope \u003e div \u003e p\" attributes=\"class\"\u003e\n\t\u003cdiv\u003e\n\t\t\u003cp\u003eSetting the breakpoint on a nested element\u003c/p\u003e\n\t\u003c/div\u003e\n\u003c/break-on\u003e\n```\n\n## Future\n\n- Options for only additions or deletions of attributes and children.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fbreak-on-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowler%2Fbreak-on-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fbreak-on-element/lists"}