laravel / framework

The Laravel Framework.
https://laravel.com
MIT License
32.12k stars 10.87k forks source link

dd() in Chrome v.72 shows blank in AJAX response #27428

Closed s-patompong closed 5 years ago

s-patompong commented 5 years ago

Description:

I was debugging my AJAX request using dd() as I usually do on my Google Chrome browser. This time instead of showing object information in the preview tab, it shows me a blank (white background).

Note:

Steps To Reproduce:

  1. Create a test route call /test-dd in the route file and put some dd() code it in (just a simple array is fine).
  2. Create a new blade file and put a script tag that does AJAX call to /test-dd route (in my case I use fetch API).

screen shot 2562-02-06 at 15 26 58

rom1vtle commented 5 years ago

Yes, same probleme for me, I get a blank in preview tab. but in response tab it shows me raw code

Preview Tab : 2019-02-06_11h21_46

Response Tab : 2019-02-06_11h22_33

d-pollard commented 5 years ago

This is probably due to the fact that preview in the chrome developer console doesn't run Javascript and dd() relies heavily on it to give a "developer/user"-friendly display:

screen shot 2019-02-06 at 10 36 42 am

A solution could be to potentially add in a CSS + HTML based solution inside the noscript tag. Sounds like an opportunity for a PR!

s-patompong commented 5 years ago

Found this on Chrome Dev-Tool forum: https://groups.google.com/forum/#!topic/google-chrome-developer-tools/6btEa32ISEA

Seem like people have been having this problem for a while now. Some has it since Chrome 62. It's weird that I just have this problem now, the previous version of Chrome works perfectly fine for me.

Now, I no longer think this is Laravel problem. I'm not sure if Laravel team will consider this as a big problem at all because people can just use dump-server to see the dump data now.

driesvints commented 5 years ago

Seems like this is a Chrome issue rather than an issue with the framework.

lukas-pierce commented 5 years ago

I solved this problem by installing Google Chrome Dev Edition (v74)

s-patompong commented 5 years ago

That mean Chrome's dev bring back the feature in v74. I'll wait until it releases then.

browner12 commented 5 years ago

seems to be working again in Chrome 73, released yesterday.

s-patompong commented 5 years ago

Yep, can confirm that it's back to work now on v73. Tested on Laravel 5.7.

acv-namtd commented 5 years ago

Oh chrome version 73 has fixed it

ernst77 commented 5 years ago

Still not working for me... Version 73.0.3683.86 (Official Build) (64-bit) image image

While it works fine on FIrefox image

s-patompong commented 5 years ago

@ErnestStaug does it work if you change from null to something else like an array?

ernst77 commented 5 years ago

Nope, nothing works... checked on colesgues computer same issue :)

On Thu, 4 Apr 2019 at 12:08, Patompong Savaengsuk notifications@github.com wrote:

@ErnestStaug https://github.com/ErnestStaug does it work if you change from null to something else like an array?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/laravel/framework/issues/27428#issuecomment-479815542, or mute the thread https://github.com/notifications/unsubscribe-auth/AQdpgTc1y2Lr0yJEXgkcMkS95nCGGjheks5vdcEFgaJpZM4akv7p .

s-patompong commented 5 years ago

Just an update, for me this issue shows up again in Chrome 75.

driesvints commented 5 years ago

Hey everyone,

I'm locking this issue because it either has gone off-topic, become a dumping ground for things which shouldn't be in an issue tracker or is just too old. Please try to discuss things further on one of the below channels: