Questions tagged [cakephp-debug-kit]

Provides a debugging toolbar and enhanced debugging tools for CakePHP applications.

DebugKit provides a debugging toolbar and enhanced debugging tools for CakePHP applications.

25 questions
2
votes
0 answers

How can I use debug_kit when my API return json

I have a cakephp app and my requisition take a lot time to return a answer - 1,5s. The problem is because all my endpoints return a json response and debug_kit just return rendered HTML. What I can do to debug this and see where my app are taking…
Bruny
  • 39
  • 6
2
votes
2 answers

Cake PHP 3 debug_kit panel

After install CakePHP3 ver. 3.6.2, debug_kit don't show panel. in the log file "Warning: DebugKit is disabling itself as your host newtest.my is not in the known safe list of top-level-domains (localhost,dev,invalid,test,example,local). If you would…
2
votes
1 answer

gitignore: ignore file not working cakephp

I have .gitignore file in my project, I want to ignore debug_kit.sqlite too I add this file in my .gitignore but still not working, when I rebase I have a conflit in this file. Auto-merging tmp/debug_kit.sqlite CONFLICT (content): Merge conflict in…
Malki Mohamed
  • 1,578
  • 2
  • 23
  • 40
1
vote
3 answers

CakePHP DebugKit loaded but not showing

I created a fresh isntallation of CakePHP 4 with composer. I am using wamp on localhost. After DB config, everything works fine on the default homepage, including the debugkit icon on the bottom right. However, uploading the same project to my…
rhinoeli
  • 151
  • 7
1
vote
1 answer

_cake_model_ cache was unable to write 'default_seasons' to DebugKit\Cache\Engine\DebugEngine cache

i have been struggeling setting up a dev enviroment on my mac for a couple of hours now. Usually we just run docker-compose up and things work fine. On my windows computer all i had to do was create the tmp directory. On my mac however i cannot seem…
1
vote
1 answer

DebugKit's toolbar cache exhausts memory

I've a controller that passes large variables to a view, but nothing unreasonable given the context (PHP uses around 100 MB of RAM). My problem is that DebugKit generates a large temporary file that requires a lot of memory to unserialize on next…
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
1
vote
1 answer

CakePHP SQL Log - How to check the SQL Logs from previous requests?

I'm trying to learn CakePHP using the Bookmark tutorial. When I use the "baked" application forms to create or edit new Entities, they typically redirect to the index action following successful submission. At this point, the Sql Log in the Debug…
1
vote
0 answers

CakePHP 3.1 Random error from DebugKit timer

I randomly see errors from Debug Kit in CakePHP relating to a template filename string, when it is passed to MessageFormatter. Sometimes the view loads fine, other times it fails with the following: Fatal error: [Aura\Intl\Exception\CannotFormat]…
Daniel
  • 61
  • 4
1
vote
2 answers

Remove DebugKit markup from a view

I have a *.ctp template with some HTML that's aimed to be converted into PDF with the CakePDF plugin. In the development phase I have set CakePHP debug level to 2 and that causes all DebugKig stuff to show up in the rendered view:
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
1
vote
0 answers

CakePHP DebugKit error

I get this error in my CakePHP 3 app Fatal error: Call to undefined method Cake\Database\Query::toArray() in /home/rrd/public_html/sanga/vendor/cakephp/debug_kit/src/Panel/VariablesPanel.php on line 77 Cake 3.1.8 DebugKit 3.2.4 Any idea what is…
rrd
  • 1,441
  • 2
  • 15
  • 36
1
vote
1 answer

CakePHP 3.0.1: DebugKit not working properly

I use CakePHP 3.0.1 and DebugKit (install using Composer). I checked all steps to enable DebugKit but I don't see DebugKit Panel. Help me!
ansidev
  • 361
  • 1
  • 3
  • 17
1
vote
2 answers

Can't install DebugKit in cakePHP

I set up the DebugKit in cakephp but I'm getting this error: Error: DebugKit.ToolbarComponent could not be found. Error: Create the class ToolbarComponent below in file: …
1
vote
0 answers

CakePHP 3: Only allow DebugKit to load for administrators

I have depleted my resources trying to figure this out. How do I only enable the "greatly helpful" DebugKit to only load when the logged in user is an administrator? The approach I know and thought to work, is with Configure::write('debug', 1), but…
AKKAweb
  • 3,795
  • 4
  • 33
  • 64
0
votes
1 answer

How to disable CakePHP4 DebugKit creating the huge tmp/debug_kit.sqlite file

I've developed an app with CakePHP 4.4.11. In production environment, I set debug to false in app_local.php. 'debug' => filter_var(env('DEBUG', false), FILTER_VALIDATE_BOOLEAN), The app is working fine as expected, however, I noticed the…
0
votes
1 answer

How to view full SQLite BLOB?

I'm studying the way Debug Kit stores data. I would like to see the full JSON of the content field, but it's obviously not displaying it in full. When running sqlite3 -line debug_kit.sqlite "select content, length(content) from panels where…
Lajos Arpad
  • 64,414
  • 37
  • 100
  • 175
1
2