Welcome Guest Search | Active Topics | Sign In | Register

Console Javascript is not working Options
Tank
Posted: Thursday, July 6, 2017 5:49:15 AM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi EO Support,


its great feature to debug the EO Web browser from Dev tools from remote debug port and console and inspecting elements were working just fine. but after version 16.2.23.0 the console in dev tools is not working. After entering any JavaScript code if I press enter to execute the code it is always go to next line instead of executing the code (please refer image below).



I have checked for Chrome settings, if it is set to multiline script but it is not. It is very difficult now to trouble shoot with dev tools, can you please update if it is known issue and solved or will be solved in new version ?

Thanks,
Tank
Eurice
Posted: Thursday, July 6, 2017 6:07:47 AM
Rank: Advanced Member
Groups: Member

Joined: 12/10/2014
Posts: 133
Hey,

Check this topic : https://www.essentialobjects.com/forum/postst10144_WebControl-cannot-execute-js-in-debugger.aspx

You should check your chrome version or try to debug with tabbedbrowser.

Good luck
Tank
Posted: Monday, July 10, 2017 6:13:01 AM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi Eurice,

thanks for the reply.. i have tried with Tabbed browser but it only debug the web viewes that are in tabbed browser and not in my application. it might be because i am using 16.X version of eo and tabbed browser is built with 17.0 version of EO.

@EO_support : can you please provide a url to download tabbed browser or complete EO Setup for 16.2.23.0 version ? i could not find it on download page.

Thanks,
Tank
eo_support
Posted: Monday, July 10, 2017 9:58:02 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hello Tank,

Please PM us with your order number. After we verify your order we will be able to provide you the download link.

Thanks!
Tank
Posted: Friday, July 14, 2017 7:54:41 AM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi Eo Support,

i have installed the build 16.2.23.0, but i can not see debug tools in tabbed browser and can not debug js.



can you please verify if debug tools is included in 16.2.23.0 version as well ?

Regards,
Tank
eo_support
Posted: Friday, July 14, 2017 11:13:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

You would just click "Developer Tools".

Thanks!
Tank
Posted: Monday, July 17, 2017 6:09:28 AM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi EO Support,

i have already tried that. but i can't debug my window, check below screen shot.



Regards,
Tank
eo_support
Posted: Monday, July 17, 2017 8:46:26 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
If you just run our TabbedBrowser, load any page (such as Google's home page), then go to the menu to open "Developer Tools", what do you see?
Tank
Posted: Tuesday, July 18, 2017 2:05:12 AM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi EO Support,

definatly i can debug the any page opend in TabbedBrowser, but i wanted to debug the page that is opend in EO.WebBrowser control in my application and not in tabbed browser.
if i can debug my application's eo control and it hosted web site then only i can debug the js functions and c# functions exposed as js in EO.

Right now it is not possible to debug my application.

Regards,
Tank
eo_support
Posted: Tuesday, July 18, 2017 11:39:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

TabbedBrowser is just an example to show you how to use the built-in debug feature. If TabbedBrowser can debug any page, your application can debug any page as well. The easiest way to do that is to call this method in your application:

https://www.essentialobjects.com/doc/eo.webbrowser.webview.showdebugui.aspx

This is the same code that TabbedBrowser uses.

Thanks!
Tank
Posted: Friday, July 21, 2017 5:36:31 AM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi EO Support,

i understand that using WebView.ShowDebugUI Method i can debug my application. but how to do that in production issue troubleshooting.
i can't have hidden code in my application that can run and call this metthod to show debug UI.

there should be tool or chrome browser support to debug the application running on remote debug port.

Regards,
Tank
eo_support
Posted: Friday, July 21, 2017 7:41:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
That's what the remote debug is for. We have verified that it does work. Here are our steps:

1. Start one instance of TabbedBrowser, load a page such as "http://www.google.com";
2. Start another instance of TabbedBrowser, load "http://localhost:1234";
3. We then navigate to the JavaScript console on the second page and type "alert('hi')" and the alert box is correctly displayed;

Could there be something in your page that overwrote the built-in alert method? Or your code handled JSDialog event and silenced the alert?

Tank
Posted: Tuesday, July 25, 2017 8:41:30 AM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi EO Support,

i have already tried to access my application's remote port from tabbed browser and also tried the solution you have suggested but it is giving error as below.



Regards,
Tank
eo_support
Posted: Tuesday, July 25, 2017 10:01:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
I am not sure what else to tell you. We tried exactly the same steps and it works fine.

If you must debug your application, I recommend you to add a shortcut to invoke WebView.ShowDebugUI. That should always work.

Thanks!
Tank
Posted: Tuesday, July 25, 2017 11:50:36 PM
Rank: Advanced Member
Groups: Member

Joined: 6/13/2014
Posts: 38
Hi EO Support,

Are you also using the same version as i am ? i.e. 16.2.23.0 ?

Regards,
Tank
eo_support
Posted: Thursday, July 27, 2017 6:21:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Hi,

Please try the current version. Only the current version is being actively maintained.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.