Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome Developer Tools not working #60

Closed
GoogleCodeExporter opened this issue Aug 28, 2015 · 6 comments
Closed

Chrome Developer Tools not working #60

GoogleCodeExporter opened this issue Aug 28, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

Thanks for the compliments, I'm glad you like it.

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

@GoogleCodeExporter
Copy link
Author

Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/60

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:23

@waheed707
Copy link

waheed707 commented May 4, 2018

Datalist tag is not working how i will fixed that in php-desktop-chrome version 57.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants