wxWebview wxWebviewEdge打开开发者工具快捷键

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
feilanglove6
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Apr 19, 2022 2:05 pm

wxWebview wxWebviewEdge打开开发者工具快捷键

Post by feilanglove6 »

编译了wxWebView windows版本的,然后选择编译了edge版本的,想打开开发者工具 ,为什么按了F12,Ctrl+Shift+i都没反应,
[`9JC1N]OW82GR)H%ATLTC3.png
[`9JC1N]OW82GR)H%ATLTC3.png (16.73 KiB) Viewed 13063 times
,有没有哪位朋友遇到过这个问题啊?
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by doublemax »

Did you confirm that the Edge backend is used? It can be seen in the log window of the "webview" sample.

Did you click into the webview so it gets input focus before pressing F12?
Use the source, Luke!
bob
Knows some wx things
Knows some wx things
Posts: 25
Joined: Fri Apr 14, 2023 7:22 am

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by bob »

on demo F12 is not work. any methods to make it work?
bob
Knows some wx things
Knows some wx things
Posts: 25
Joined: Fri Apr 14, 2023 7:22 am

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by bob »

the last solution is web oepn the console and slove the question. :?: :?: :?: :( :( :(
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by doublemax »

bob wrote: Tue Apr 25, 2023 6:35 am on demo F12 is not work. any methods to make it work?
Select "Enable Dev Tools" from the menu. Then reload the page.

Works for me.
Use the source, Luke!
bob
Knows some wx things
Knows some wx things
Posts: 25
Joined: Fri Apr 14, 2023 7:22 am

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by bob »

my wxwidget version is wxWidgets-3.2.1.
and wo run the widget samples.
then handle as the gif .
that look likes i can't enable the function?
then i pressed the F12,the develop tool not show.maybe somewhere error?

thanks all.
Attachments
issue.gif
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by doublemax »

When you look at the first line in the log window, you see that you're using the Internet Explorer backend. That doesn't support the dev tools.

Check the documentation on how to use the wxWEBVIEW_BACKEND_EDGE backend.
https://docs.wxwidgets.org/trunk/classw ... CKEND_EDGE
Use the source, Luke!
bob
Knows some wx things
Knows some wx things
Posts: 25
Joined: Fri Apr 14, 2023 7:22 am

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by bob »

thanks. emm. maybe the ie webview not support the f12 to open the dev tools ?
i will try to use edg to due with it.
i want known more .if i use cef to install of it the default backend.
i can use cef to show web on mac or win and use f12 to open dev tools debug?

at present webview show the web depen on the platform browser,
if use cef,i can debug web use f12 tools on any platform, isn't?
User avatar
doublemax
Moderator
Moderator
Posts: 19102
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by doublemax »

bob wrote: Thu Aug 10, 2023 3:59 am thanks. emm. maybe the ie webview not support the f12 to open the dev tools ?
Yes
i can use cef to show web on mac or win and use f12 to open dev tools debug?
On Mac it should work already. The Edge backend is only important under Windows.
Use the source, Luke!
bob
Knows some wx things
Knows some wx things
Posts: 25
Joined: Fri Apr 14, 2023 7:22 am

Re: wxWebview wxWebviewEdge打开开发者工具快捷键

Post by bob »

thanks for your kind. i will check my code and fix this bug.
no dev tool debug web is very hard.
Post Reply