wcbzero / phpdesktop

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

Chrome Developer Tools not working #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use default settings with "devtools_F12": true,
        "command_line_switches": {
            "remote-debugging-port": "54008"
        }
2. Launch PHP Desktop
3. Press F12 or right click and choose Show Developer Tools

What is the expected output? What do you see instead?

Expected output is to see the Chrome Developer Tools pop up at the bottom of 
the window.  What is happening is a second PHP Desktop window opens and a 
standard windows 8 prompt pops up that says "No apps are installed to open this 
type of link (chrome-devtools)" and there is the standard option below to "Look 
for an app in the store".  I've attached a screenshot.

There are some warnings and debug lines in the console that happen in the 
console on startup and after pressing F12.  They might be helpful.

On Startup:

INFO: CGI pattern: **.php$
DEBUG: Command line string for the browser process: "C:\[my path 
removed]\phpdesktop-chrome.exe" --lang=en-US --log-file="C:\[my path 
removed]\debug.log" --no-sandbox --remote-debugging-port=54008
DEBUG: App::OnContextInitialized()
DEBUG: Window max width/height 1600/962
DEBUG: GeBrowserWindow(): not found, hwnd = 2035706
DEBUG: WindowProc(): event WM_GETMINMAXINFO: could not fetch BrowserWindow
DEBUG: BrowserWindow:CreateBrowserControl()
DEBUG: StoreBrowserWindow(): hwnd = 2035706
WARNING: BrowserWindow:OnSize() failed: CefBrowser object not created yet
DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreted()
DEBUG: DPI, ppix = 96, ppiy = 96
DEBUG: DPI, browser zoom level = 0
...

Upon Pressing F12:

DEBUG: F12 pressed, opening developer tools
DEBUG: BrowserWindow::BrowserWindow() created for Popup
DEBUG: StoreBrowserWindow(): hwnd = 1446350
WARNING: BrowserWindow::OnSize() failed: CefBrowser object not created yet
DEBUG: SetCefBrowser() called in ClientHandler::OnAfterCreated()

and that's the last line in the console.

What version of the product are you using? On what operating system?

I am on Windows 8.1.  I'm using phpdesktop-chrome-31.1-php-5.4.24.

Other information: 

I did go into my firewall and make sure the port for debugging was not blocked. 
 Could this be a Windows 8.1 specific problem?

Original issue reported on code.google.com by DallinHS...@gmail.com on 21 Jan 2014 at 7:05

Attachments:

GoogleCodeExporter commented 9 years ago
I think I know what the problem is. The devtools url is "chrome-devtools://". 
It's a non-standard scheme. It works fine loading such url on Win7. Don't know 
what the problem is with Win8. I will just change the devtools url to be a 
standard http://127.0.0.1:remote-debugging-port/ url.

Original comment by czarek.t...@gmail.com on 21 Jan 2014 at 7:17

GoogleCodeExporter commented 9 years ago
Fixed in revision 4e67fd831faf and 1de2d96a16a9.

When devtools window opens it should now display its full url in the console:

    - 20:20:19.896 INFO: DevTools url: http://localhost:54008/devtools/devtools.html?ws=localhost:54008/devtools/page/1538ed984a2a4a90e5ed941c7d142a12

Version 31.2 released.

Thanks for the accurate report.

Original comment by czarek.t...@gmail.com on 21 Jan 2014 at 7:48

GoogleCodeExporter commented 9 years ago
Checked and working great now Czarek. Awesome job! Thanks so much!

Original comment by DallinHS...@gmail.com on 21 Jan 2014 at 8:13

GoogleCodeExporter commented 9 years ago
Thanks for the compliments, I'm glad you like it.

Original comment by czarek.t...@gmail.com on 21 Jan 2014 at 8:16