Coder Social home page Coder Social logo

aaronsaray / firephp4chrome Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 13.0 115 KB

Google Chrome's Developer Tools are great - but they were missing something. Install this extension (or find it on the Chrome Extensions Store) to see FirePHP messages in your console!

License: Other

HTML 9.18% JavaScript 66.70% PHP 24.12%

firephp4chrome's Introduction

firephp4chrome's People

Contributors

aaronsaray avatar basster avatar godlesz avatar powerkiki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

firephp4chrome's Issues

not working

some times it does'nt work..

following is the header, which works fine on FireFox, but does not work on chrome with your extension, can you please tell me why?

X-Powered-By:ZendServer 6.2.0
X-Wf-1-1-1-1:283|[{"Type":"EXCEPTION","File":"D:\Projects\domain.com\application\www\contribute\test.php","Line":5},{"Class":"Exception","Message":"This is test exception!!","File":"D:\Projects\domain.com\application\www\contribute\test.php","Line":5,"Type":"throw","Trace":[]}]|
X-Wf-1-Index:1
X-Wf-1-Plugin-1:http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3
X-Wf-1-Structure-1:http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1
X-Wf-Protocol-1:http://meta.wildfirehq.org/Protocol/JsonStream/0.2

table indexes

The server-side use of tables isn't very friendly (out of your control)
that being said, the format the firephp spec uses, probably makes it harder to create the table client-side

X-Wf-1-1-1-6:76|[{"Type":"TABLE"},[["","name","age"],["row1","Dick",39],["row2","Jane",37]]]|

should appear as

name age
"row1" "Dick" 39
"row2" "Jane" 37

however the plug is currently rendering it as

index name age
0 "row1" "Dick" 39
1 "row2" "Jane" 37

the client shouldn't have the index column if possible as no index info was explicitly passed

the less-good "FirePHP for Chrome" extension gets tables right (for example/reference), but completely borks groups

auto-expand groups

Groups are displayed as closed, which means I have to manually open them to see the content.

It would be helpful if the groups would be open automatically (or have an option to configure that).

Screenshot

Better table formatting

Since Chrome doesn't support console.table() output, the arrays are dumped to the screen.

Need to investigate if there are ways to send formatting to the log() command that changes fonts to be monospaced or borders or something.

Inverted output

Since version 41.0 I started to recieve an inverted output.
Given:

FB::send('1');
FB::send('2');
FB::send('3');

I get in console:

3
2
1

URLs to disable doesn't work

hi.
i'm trying to disable url vapecraft.ru by writing ://.vapecraft.ru/* pattern in "URLs to disable" field. it work once, on first page open after saving settings. then i have 403 error while openning site. can u fix it?

Feature Request: support formatting/substitution

https://console.spec.whatwg.org/#formatter

Ie, this header
X-Wf-1-1-1-76:179|[{"Type":"LOG","Label":"%o substitution %.2f %ctest"},[["foo","bar"],1.1,"background-color:#00f; font-weight:bold; color:#fff; padding:0 .25em;"]]|

should be equivalent to
console.log("%o substitution %.2f %ctest", ["foo","bar"], 1.1, "background-color:#00f; font-weight:bold; color:#fff; padding:0 .25em;")

not "firephp" per say, but since it's just getting passed to the console...

right now it outputs
"โ–ธ Array(3) substitution %.2f %ctest"
where the array contains the 3 substitution values

Edit: der... I believe it's because, since firephp only supports "label: value"... I'm passing more than 2 arguments as a list/array for the "value"

refactor regex

The regex should be precompiled instead of testedin loops.

headers, but no log

thoughts on why I might see headers in the response, but no log "rendered" in the console?
I can copy paste the headers and generate a bare-bones request with them and I get the log... but when the log is sent with a real page's output... bupkis

Messages in ajax requests not showing

I have ajax requests that contain the FirePHP headers but they don't appear in the console. Headers for the initial page load work great but not if they come through ajax requests. Am I missing something or is this a bug?

Not working

Installed your extension, but it's not working. Using Chrome 22.0.1229.79.

I see the headers when viewing the Network request, but I get nothing in the console. Everything runs fine in Firefox.

Breaks www.yellowpages.com

I have no idea why, but after a lot of trial and error I discovered that enabling this add-on causes www.yellowpages.com to return a 403 forbidden error. I have confirmed that it is this add-on by disabling all other add-ons and testing the website with this one enabled and disabled. Any idea what might be causing this? Thanks!

groups appear with null next to label

Minor glich

groups appear in the console with null next to the label

group label null

firephp header for a group looks something like

X-Wf-1-1-1-7:70|[{"Type":"GROUP_START","Label":"group label","Collapsed":"true"},null]|

null is where the "value" for log/info/warn/error would go, but is still transmitted for a group

It should be ignored

likewise, GROUP_END also has a null value (which is correctly ignored

X-Wf-1-1-1-9:27|[{"Type":"GROUP_END"},null]|

CORS error that prevents loading of google fonts with firephp enabled

After updating to Chrome 76, I get the following error when loading pages using Google Fonts:

Access to font at 'https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2' from origin '<origin here>' has been blocked by CORS policy: Request header field x-firephp-version is not allowed by Access-Control-Allow-Headers in preflight response.

Maybe we could avoid sending that header to google fonts specifically? I'm sadly ignorant about this error in particular, so maybe there's a more elegant way.

Empty response on AJAX request when extension enabled

Hi, first thanks for the work to support FirePHP in Chrome!

I've had a very annoying bug lately: some ajax requests returned a completely empty response when the extension was enabled.

This happened on very specific requests (not all AJAX requests), with nothing being logged to FirePHP but FirePHP was enabled. I even tried to disable FirePHP server-side, and the response was still empty.

When I tried the same thing on Firefox, another machine, or simply disabling the extension, then everything was fine.

I know you probably need a lot more information for such a specific bug, but I really have trouble identifying why some requests and not others. Maybe that will ring a bell for you?

FYI: I'm using Chromium, on Ubuntu. Server-side it's a Zend Framework 1 app. All works great, URLs are valid, JSON response is valid, etc.


Here is an example of a request that returned an empty response.

The only things a bit unusual here are:

  • long url (yeah I know it's weird, but it works)
  • long form POST (we have a JS library that posts a form through ajax, and it serialize all to JSON into a single entry), maybe that could be a problem?

Request:

Headers:

URL:http://localhost/myapp/af/input/submit/id/2/actionStack/%5B%7B%22action%22%3A%22inputsave%22%2C%22controller%22%3A%22cell%22%2C%22module%22%3A%22orga%22%2C%22params%22%3A%7B%22idCell%22%3A%22777%22%7D%7D%5D/idCell/777/idInputSet/4
Request Headersview source
Accept:*/*
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Origin:http://localhost
Referer:http://localhost/myapp/orga/cell/input/idCell/777/fromIdCell/1
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36
X-Requested-With:XMLHttpRequest

Form-data:

consommation_energie_poste_fixe: {"liste_energie_ach": {"name": "liste_energie_ach", "hidden": false, "value": ["option_electricite"], "hiddenValues": {}, "children": {}}, "electricite": {"name": "electricite", "hidden": false, "folded": false, "elements": {"electricite__quantite_electricite": {"name": "electricite__quantite_electricite", "hidden": false, "value": "13976", "disabled": false, "hiddenValues": {}, "children": {"electricite__percentquantite_electricite_child": {"value": "0", "disabled": false, "hiddenValues": {}}}}, "electricite__pays_consommation_electricite": {"name": "electricite__pays_consommation_electricite", "hidden": false, "value": "autriche", "disabled": false, "hiddenValues": {}, "children": {}}, "electricite__dont_pour_parc_informatique": {"name": "electricite__dont_pour_parc_informatique", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"electricite__percentdont_pour_parc_informatique_child": {"value": "", "disabled": false, "hiddenValues": {}}}}}}, "gaz": {"name": "gaz", "hidden": true, "folded": false, "elements": {"gaz__quantite_gaz": {"name": "gaz__quantite_gaz", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"gaz__percentquantite_gaz_child": {"value": "", "disabled": false, "hiddenValues": {}}}}}}, "fioul": {"name": "fioul", "hidden": true, "folded": false, "elements": {"fioul__quantite_fioul": {"name": "fioul__quantite_fioul", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"fioul__percentquantite_fioul_child": {"value": "", "disabled": false, "hiddenValues": {}}}}}}, "reseau_chaleur": {"name": "reseau_chaleur", "hidden": true, "folded": false, "elements": {"reseau_chaleur__quantite_chaleur": {"name": "reseau_chaleur__quantite_chaleur", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"reseau_chaleur__percentquantite_chaleur_child": {"value": "", "disabled": false, "hiddenValues": {}}}}, "reseau_chaleur__selection_reseau_chaleur": {"name": "reseau_chaleur__selection_reseau_chaleur", "hidden": false, "value": "reseau_chaleur_moyenne_france", "disabled": false, "hiddenValues": {}, "children": {}}, "reseau_chaleur__coche_reseau_chaleur_absent_dans_liste": {"name": "reseau_chaleur__coche_reseau_chaleur_absent_dans_liste", "hidden": false, "value": 0, "hiddenValues": {"undefined": "0"}, "children": {}}, "reseau_chaleur__fe_reseau_chaleur": {"name": "reseau_chaleur__fe_reseau_chaleur", "hidden": true, "value": "0.193", "disabled": false, "hiddenValues": {}, "children": {"reseau_chaleur__percentfe_reseau_chaleur_child": {"value": "30", "disabled": false, "hiddenValues": {}}}}}}, "reseau_froid": {"name": "reseau_froid", "hidden": true, "folded": false, "elements": {"reseau_froid__quantite_froid": {"name": "reseau_froid__quantite_froid", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"reseau_froid__percentquantite_froid_child": {"value": "", "disabled": false, "hiddenValues": {}}}}, "reseau_froid__selection_reseau_froid": {"name": "reseau_froid__selection_reseau_froid", "hidden": false, "value": "reseau_froid_moyenne_france", "disabled": false, "hiddenValues": {}, "children": {}}, "reseau_froid__coche_reseau_froid_absent_dans_liste": {"name": "reseau_froid__coche_reseau_froid_absent_dans_liste", "hidden": false, "value": 0, "hiddenValues": {"undefined": "0"}, "children": {}}, "reseau_froid__fe_reseau_froid": {"name": "reseau_froid__fe_reseau_froid", "hidden": true, "value": "0.048", "disabled": false, "hiddenValues": {}, "children": {"reseau_froid__percentfe_reseau_froid_child": {"value": "30", "disabled": false, "hiddenValues": {}}}}}}, "autre_achat_energie": {"name": "autre_achat_energie", "hidden": true, "folded": false, "elements": {"autre_achat_energie__0": {"name": "autre_achat_energie__0", "hidden": false, "folded": false, "elements": {"autre_achat_energie__0__freeLabel": {"name": "autre_achat_energie__0__freeLabel", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {}}, "autre_achat_energie__0__question_lieu_combustion": {"name": "autre_achat_energie__0__question_lieu_combustion", "hidden": false, "value": "", "hiddenValues": {}, "children": {}}, "autre_achat_energie__0__quantite_autre_achat_energie": {"name": "autre_achat_energie__0__quantite_autre_achat_energie", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"autre_achat_energie__0__percentquantite_autre_achat_energie_child": {"value": "", "disabled": false, "hiddenValues": {}}}}, "autre_achat_energie__0__fe_autre_achat_energie": {"name": "autre_achat_energie__0__fe_autre_achat_energie", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"autre_achat_energie__0__percentfe_autre_achat_energie_child": {"value": "", "disabled": false, "hiddenValues": {}}}}, "deleteButton_autre_achat_energie_0": {"name": "deleteButton_autre_achat_energie_0", "hidden": false, "value": "", "hiddenValues": {}, "children": {}}}}, "autre_achat_energie__addButtonGroup": {"name": "autre_achat_energie__addButtonGroup", "hidden": false, "folded": false, "elements": {"addButton_autre_achat_energie": {"name": "addButton_autre_achat_energie", "hidden": false, "value": "", "hiddenValues": {}, "children": {}}}}}}, "production_electricite_renouv": {"name": "production_electricite_renouv", "hidden": true, "folded": false, "elements": {"production_electricite_renouv__quantite_electricite_renouvelable_produite": {"name": "production_electricite_renouv__quantite_electricite_renouvelable_produite", "hidden": false, "value": "", "disabled": false, "hiddenValues": {}, "children": {"production_electricite_renouv__percentquantite_electricite_renouvelable_produite_child": {"value": "", "disabled": false, "hiddenValues": {}}}}}}}

(this is only one variable in the POST data, with a really long JSON string as value)

Response (if I disable the extension):

  • no FirePHP log

  • content:

    {"type":"success","errorMessages":{"gaz__quantite_gaz":"Merci de renseigner ce champ.","fioul__quantite_fioul":"Merci de renseigner ce champ.","reseau_chaleur__quantite_chaleur":"Merci de renseigner ce champ.","reseau_froid__quantite_froid":"Merci de renseigner ce champ.","autre_achat_energie__0__question_lieu_combustion":"Merci de renseigner ce champ.","autre_achat_energie__0__quantite_autre_achat_energie":"Merci de renseigner ce champ.","autre_achat_energie__0__fe_autre_achat_energie":"Merci de renseigner ce champ.","production_electricite_renouv__quantite_electricite_renouvelable_produite":"Merci de renseigner ce champ."},"message":"Enregistrement effectu\u00e9 (saisie compl\u00e8te).","data":{"status":"finished","completion":100,"idInputSet":4}}

Headers:

Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Length:759
Content-Type:application/json
Date:Fri, 09 Aug 2013 14:17:03 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=15, max=100
Pragma:no-cache
Server:Apache
X-Powered-By:PHP/5.4.14-1~dotdeb.1

Doesn't show message in console

X-Wf-1-1-1-3:120|[{"Type":"INFO","File":"","Line":"","Label":"app"},"#^https?:\/\/(?<city>[^\\.]+)\\.___domain___\/(actions|afisha)\/?#"]|

Hi, when I try to send regexp throught FirePHP, message in console does not shows, but headers comes well.

Table data cut

Hi,

First of all, great job creating FirePHP4Chrome! Best implementation I've found by far.

As for the issue - I use Zend_Db_Profiler_Firebug to send profiled SQL in Wildfire headers for FirePHP to display, and noticed that with long queries I see a "..." in the middle of the query. This doesn't occur in the Firefox version, so the Wildfire headers seem fine.

I'm not sure if this is intentional, but it's rather annoying as I can't copy a truncated query directly out of the console and run it.

Looking forward to seeing continued dev on this Chrome plugin!

Clicking to disable FirePHP4Chrome does not work

Even if the icon is greyed out, indicating it should be disabled, I still get FirePHP output in my console. I have tried clicking to enable it, then clicking again to disable it, and I still get output in my console.

I am running Chrome 39 on OS X Yosemite.

refactor the creation of commandObject in devtools.js

Because dump() is created in a different format, there is now an if statement earlier in the code. Then, a fake metaObject is created and passed to the rest of the code. There needs to be methods created to do this more abstractly - possibly using various strategy patterns.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.