xdebug-helper-for-firefox icon indicating copy to clipboard operation
xdebug-helper-for-firefox copied to clipboard

Does not allow debugging when response header is content-type json

Open sneakingJ opened this issue 6 years ago • 10 comments

When you set the response header for example to 'Content-type', 'application/json; charset=utf-8', you can't activate the debug helper in browser tab.

sneakingJ avatar Mar 13 '18 18:03 sneakingJ

confirmed, same problem

sh3bang avatar Jul 13 '18 09:07 sh3bang

what was the full URL of page you were visiting, it should appear for any url containing http/https

BrianGilbert avatar Jul 15 '18 21:07 BrianGilbert

It was an internal URL I used for developing. But the issue is the case for every page that outputs in json, like this: https://jsonplaceholder.typicode.com/posts

sneakingJ avatar Jul 16 '18 08:07 sneakingJ

I have the same problem debugging an API. As a workaround, I navigated to the site's homepage/documentation page and enabled the debugging icon there. I then navigated to the API endpoint and my IDE started debugging properly.

xojins avatar Sep 07 '18 17:09 xojins

Same problem, the icon does not change to green when i click on it

dejwid avatar Nov 26 '18 10:11 dejwid

+1 to this issue, JSON content types will not work with this extension

judahnator avatar Mar 25 '19 16:03 judahnator

Seems related to Firefox Json viewer 🤔 Here my workaround:

  • Go to about:config
  • Search for devtools.jsonview.enabled and disable it
  • Install an other Json viewer (Json-lite do the job for me)

b-viguier avatar Mar 26 '19 09:03 b-viguier

Workaround with disabling jsonview worked, however permanent solution would be great as debugging APIs are getting more common.

acirulis avatar Mar 01 '20 13:03 acirulis

This issue is still occurring. I notice this has been arround for over 3.5 years, should we assume this is a WONTFIX?

muster-mark avatar Dec 06 '21 10:12 muster-mark

I'd still love to see this fixed :)

LeoniePhiline avatar Apr 22 '22 00:04 LeoniePhiline