There are only a couple of functions to handle the DevTools : ShowDevTools and CloseDevTools.
However, the DevTools store some settings in the "User data path". Set GlobalCEFApp.UserDataPath before calling GlobalCEFApp.StartMainProcess to test the following code.
When your browser is fully loaded call ShowDevTools setting inspectElementAt like this :
Code: Select all
inspectElementAt.x := low(integer);
inspectElementAt.y := low(integer);
At that moment, click on the console tab and close the DevTools. The next time you show the DevTools the console will still be selected by default.
The real problem comes when you want to copy some of the information shown in the DevTools. As far as I know, there's no way to do that using CEF3.
Maybe you can use the Windows APIs to find the control with the URL and copy it somehow.
Another possibility is emulating the remote debugger. Read this :
http://magpcss.org/ceforum/viewtopic.php?f=6&t=11952
It looks like you can read all the DevTools information using JSON.