chromelogger icon indicating copy to clipboard operation
chromelogger copied to clipboard

Console messages don't display, even though X-ChromeLogger-Data header exists

Open stillnet opened this issue 10 years ago • 9 comments
trafficstars

I'm trying to use chromelogger in an SPA. I make ajax calls, and on the server side I use chromelogger on that request. When the request completes I can see a lot of data in the X-ChromeLogger-Data header, but I don't get data in my console. occasionally the data shows up, but most of the time it doesn't.

Any ideas? The chromelogger icon in chrome is enabled. I'm on chrome 42.0.2311.13. Just installed the chromelogger extension yesterday so I'm on the latest version.

Thanks.

stillnet avatar May 07 '15 13:05 stillnet

Have you clicked the icon to make sure it is toggled on?

ccampbell avatar May 07 '15 14:05 ccampbell

Yes as I said the chromelogger icon is enabled. I've togged it off and back on to see if that made a difference and it didn't.

stillnet avatar May 07 '15 14:05 stillnet

Ah sorry about that... hmmm... Can you try it on a regular request that is not ajax?

If you go to https://craig.is/writing/chrome-logger and open the console and toggle on the extension do you see the logs?

ccampbell avatar May 07 '15 14:05 ccampbell

Interesting... I am actually not seeing them show up every time too. I wonder if this is something specific to a new version of chrome. I will have to dig into it more later.

ccampbell avatar May 07 '15 14:05 ccampbell

Thanks. I noticed the irregularity when testing on a single page also.

stillnet avatar May 07 '15 14:05 stillnet

Hi, I believe there's some race condition there. maybe _listenForLogMessages runs too late, after response is back?

filso avatar Sep 07 '15 10:09 filso

Doesn't work reliably I'm afraid. Probably because Chrome does goofy stuff to the headers/caches them? Its though to use in production.

popadotstudio avatar Feb 04 '16 23:02 popadotstudio

Is there a page where this is consistently reproducible or some other way I can test it?

ccampbell avatar Apr 03 '17 05:04 ccampbell

Well - just figured out the issue. In case anyone else has this issue - my issue was as simple as not selecting the Info type errors in the console. For anyone else experiencing this issue in getting messages in Chrome developer console make sure the error types you want to see are selected. phpconsole

DeadpoolKerns avatar Aug 28 '17 01:08 DeadpoolKerns