google-code-export / firephp

Automatically exported from code.google.com/p/firephp
1 stars 0 forks source link

Firefox Plugin does not show logs from redirecting request in console, but logs from the second, redirected request #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What versions and operating system are you using?

OS: Windows
Firefox: 8.0
Firebug: 1.8.4
FirePHP Server Library: 0.3.2 Core
FirePHP Extension: 0.6.2

What is the problem?

The console does not show the log output produced by a redirecting request. 
Instead the log output of the target page is shown twice. The network tab does 
reflect that the correct logging headers are received by FireBug.

What steps will reproduce the problem?
1. This is the code to reproduce the problem:
<?php
require "Path_TO_FirePHPCore-0.3.2/lib/FirePHPCore/FirePHP.class.php";

function logToFirePhp($message)
{
    $firePhp = FirePHP::getInstance(true);
    $firePhp->fb('[INFO] - ' . $message, "MyLogger", FirePHP::INFO, array()); }

if (!isset($_GET['redirected'])) {
    logToFirePhp('First call!');
    header("Location: ?redirected=yes");
} else {
    logToFirePhp('Redirected = yes');
    die("Hello World");
}

2. Go to the page without a query string.
3. Wait for "Hello World" to appear.
4. Check FirePHP console.

What is the expected output? What do you see instead?
Current Output:
"Redirected = yes" is shown twice for both requests.

Expected Output:
"First Call"
"Redirected = yes"

Original issue reported on code.google.com by sven.rau...@kabeldeutschland.de on 9 Dec 2011 at 2:38

GoogleCodeExporter commented 9 years ago
Using the DeveloperCompanion does work.

Original comment by sven.rau...@kabeldeutschland.de on 9 Dec 2011 at 4:45

GoogleCodeExporter commented 9 years ago
I'll be fixing this for the FirePHP Extension after FirePHP Extension 0.7 & 
Firebug 1.9 have been released. As you discovered it works with 
DeveloperCompanion today.

Original comment by christ...@christophdorn.com on 9 Dec 2011 at 4:53