Solved Console log ???
-
Hello is possible use console.log into WebEngine ? Mi rigth click don't work.
I have setting this in main program:bool ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --ignore-gpu-blacklist --enable-gpu-rasterization --use-gl=egl "); ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --ignore-gpu-blacklist --enable-gpu-rasterization --enable-oop-rasterization --use-angle --allow-file-access-from-files"); ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --enable-logging --log-level=3 --enable-blink-features=ShadowDOMV0,CustomElementsV0"); ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --auto-open-devtools-for-tabs");
Also CMD12 don' t work
Thanks for your help
-
@elicat What do you mean by using
console.log
? You mean inspect the page (devtools)? -
yes I nedd verify value after call method c#
-
-
Thanks but I need check value into more point of my code
javascript (connect with signal from code C++) with actionconsole.log("xxx" + variable).
I need put into specific point for check process code.
I have insert this directive into main program
ret = qputenv("QTWEBENGINE_REMOTE_DEBUGGING", "0.0.0.0");
But I didn't see any difference.
To tell the truth, I didn't understand which door I have to indicate.
Where am I wrong? -
I have solve width into main only for debug
#ifdef QT_DEBUG bool ret = qputenv("QTWEBENGINE_CHROMIUM_FLAGS", " --remote-debugging-port=91"); #endif
Where 91 is any port you want.
After open browser and go link http://127.0.0.1:91
So you can you tools developer