Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added endpoint information

  • Loading branch information...
commit a15f21143dcddca47f9215e2bacba216becb7595 1 parent 8fee4bb
@sgrebnov authored
View
26 Libraries/IE.Debug.Core/WebPageDebugger.cs
@@ -54,7 +54,20 @@ public static void InstallDebugConsole()
public static void ConnectWeinerDebugger()
{
- ConnectWeiner();
+ try
+ {
+ browser.InvokeScript("eval", new string[] { @"window.WeinreServerId='wp7'" });
+ browser.InvokeScript("eval", new string[] { @"window.WeinreServerURL='http://debug.shadow.adobe.com:8080'" });
+
+ browser.InvokeScript("eval", new string[] { FileUtils.ReadFileContent(@"app/www/wp-hacks.js") });
+ browser.InvokeScript("eval", new string[] { FileUtils.ReadFileContent(@"app/www/target-script-min.js") });
+
+ MessageBox.Show("Debugger connected to the following endpoint: http://debug.shadow.adobe.com:8080/client/#wp7");
+ }
+ catch (Exception ex)
+ {
+ Support.Messages.ShowError("Sorry, an error occured. " + ex.Message);
+ }
}
public static void InstallFirebug()
@@ -67,16 +80,5 @@ public static void ExecuteCustomScript(string script)
{
browser.InvokeScript("eval", new string[] { script});
}
-
- public static void ConnectWeiner()
- {
-
- browser.InvokeScript("eval", new string[] { @"window.WeinreServerId='wp7'" });
- browser.InvokeScript("eval", new string[] { @"window.WeinreServerURL='http://debug.shadow.adobe.com:8080'" });
-
- browser.InvokeScript("eval", new string[] { FileUtils.ReadFileContent(@"app/www/wp-hacks.js") });
- browser.InvokeScript("eval", new string[] { FileUtils.ReadFileContent(@"app/www/target-script-min.js") });
-
- }
}
}
View
4 WindowsPhone/Views/MainPage.xaml
@@ -44,8 +44,8 @@
<shell:ApplicationBar.MenuItems>
<shell:ApplicationBarMenuItem Click="ActionConnectWeinreDebugger" Text="Weinre debugger"/>
<shell:ApplicationBarMenuItem Click="ActionRunFirebug" Text="Run firebug"/>
- <shell:ApplicationBarMenuItem Click="ActionClearPerfLog" Text="Clear Perf Log"/>
- <shell:ApplicationBarMenuItem Click="ActionGetPerfLog" Text="Get Perf Log"/>
+ <!--<shell:ApplicationBarMenuItem Click="ActionClearPerfLog" Text="Clear Perf Log"/>
+ <shell:ApplicationBarMenuItem Click="ActionGetPerfLog" Text="Get Perf Log"/>-->
<!--<shell:ApplicationBarMenuItem Click="ActionRunTestScript" Text="Run test script"/>-->
</shell:ApplicationBar.MenuItems>
</shell:ApplicationBar>

0 comments on commit a15f211

Please sign in to comment.
Something went wrong with that request. Please try again.