Closed Bug 1215820 Opened 10 years ago Closed 9 years ago

Dev Tools: Server logging: object is toString'ed in the console output

Categories

(DevTools :: Console, defect, P3)

43 Branch
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: thomas, Unassigned)

References

Details

(Whiteboard: [btpp-backlog])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:43.0) Gecko/20100101 Firefox/43.0 Build ID: 20151016142700 Steps to reproduce: Make sure you have a http server with php enabled. 1. Create a new PHP file and include the ChromePhp library. 2. Call the log() method with an php array value as the parameter, eg.: <?php ChromePhp::log( $_SERVER );?> 3. Open the Dev tool console and navigate to the server/php file. Links: * https://developer.mozilla.org/en-US/docs/Tools/Web_Console/Console_messages#Server * https://craig.is/writing/chrome-logger * https://github.com/ccampbell/chromephp * https://chrome.google.com/webstore/detail/chrome-logger/noaneddfkdjfnfdakjjmocngnfkfehhd Actual results: The console output says: [object Object] Expected results: A clickable Object representation of the output, eg Object { CONTEXT_DOCUMENT_ROOT: ... } Clicking the Object word should open the side panel showing the properties. (The Chrome extension shows the expected result)
Summary: Dev Tools: Server logging: object is toString'ed → Dev Tools: Server logging: object is toString'ed in the output
Summary: Dev Tools: Server logging: object is toString'ed in the output → Dev Tools: Server logging: object is toString'ed in the console output
Component: Untriaged → Developer Tools: Console
Honza, do you have any ideas about why this isn't working for ChromePhp?
Flags: needinfo?(jodvarko)
Priority: -- → P3
Whiteboard: [btpp-backlog]
As of Firefox 46+ the logging works as expected using chromephp logger
Great! Thanks for the info.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(jodvarko)
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.