{"id":16835220,"url":"https://github.com/pedrotroller/tracedebug","last_synced_at":"2025-03-18T02:25:44.557Z","repository":{"id":28279315,"uuid":"31789864","full_name":"PedroTroller/TraceDebug","owner":"PedroTroller","description":"A little debugging tool. You can capture stack traces.","archived":false,"fork":false,"pushed_at":"2017-02-15T17:27:32.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T09:43:16.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PedroTroller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-06T21:29:59.000Z","updated_at":"2017-02-15T17:14:25.000Z","dependencies_parsed_at":"2022-07-08T11:01:34.766Z","dependency_job_id":null,"html_url":"https://github.com/PedroTroller/TraceDebug","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PedroTroller%2FTraceDebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PedroTroller%2FTraceDebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PedroTroller%2FTraceDebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PedroTroller%2FTraceDebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PedroTroller","download_url":"https://codeload.github.com/PedroTroller/TraceDebug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244142617,"owners_count":20405041,"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":[],"created_at":"2024-10-13T12:09:21.778Z","updated_at":"2025-03-18T02:25:44.538Z","avatar_url":"https://github.com/PedroTroller.png","language":"PHP","readme":"#TRACE DEBUG\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/PedroTroller/TraceDebug/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/PedroTroller/TraceDebug/?branch=master)\n\n##What is it ?\n\nA simple library and a Symfony bundle. With it, you will be able to captule stacktraces and display them into the debug toolbar.\n\n##Installation (Symfony Bundle)\n\n```php\nclass AppKernel extends Kernel\n{\n    public function registerBundles()\n    {\n        $bundles = array(\n            // ...\n        );\n\n        if (in_array($this-\u003egetEnvironment(), array('dev', 'test'))) {\n            // ...\n            $bundles[] = new PedroTroller\\TraceDebug\\Bundle\\TraceDebugBundle();\n        }\n\n        return $bundles;\n    }\n}\n```\n\n##Usage\n\nThis library will add a new function : `trace()`. You just have to call this function and a stacktrace will be captured.\n\n```php\nclass SomeClass\n{\n    public function someFunction() {\n        // ...\n        trace();\n        // ...\n    }\n}\n```\n\nAnd thats all, now, you will see a new button into the toolbar named `Trace()` with the number on stacktrace captured.\n\n##Capture multiple stacktrace from multiple places\n\nIf you want to capture stacktrace from differents places, it will be dificult to know which trace come from which place... So, you just have to give a name to the capture.\n\n```php\nclass SomeClass\n{\n    public function someFunction() {\n        // ...\n        trace('capture1');\n        // ...\n    }\n\n    public function someOtherFunction() {\n        // ...\n        trace('capture2');\n        // ...\n    }\n}\n```\n\nAnd so, the display will sort traces from the name of the capture.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrotroller%2Ftracedebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrotroller%2Ftracedebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrotroller%2Ftracedebug/lists"}