This commit is contained in:
kudzu_cp 2011-06-19 13:40:23 +00:00
parent b985fb2cc7
commit faed46c816
5 changed files with 43 additions and 5 deletions

View file

@ -119,6 +119,7 @@
<Compile Include="AD7.Definitions\AD7Hresult.cs" />
<Compile Include="AD7.Impl\AD7PendingBreakpoint.cs" />
<Compile Include="AD7.Impl\DebugLocalInfo.cs" />
<Compile Include="DebugWindows.cs" />
<Compile Include="Engine.Impl\BreakpointManager.cs" />
<Compile Include="Engine.Impl\OperationThread.cs" />
<Compile Include="AD7.Impl\AD7Engine.cs" />

View file

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.IO.Pipes;
using System.Linq;
using System.Text;
namespace Cosmos.Debug.VSDebugEngine {
public class DebugWindows {
public static void Test(string aData) {
}
}
}

View file

@ -3,6 +3,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
</Grid>
<ListBox Height="287" HorizontalAlignment="Left" Margin="12,12,0,0" Name="listBox1" VerticalAlignment="Top" Width="479" />
</Grid>
</Window>

View file

@ -1,7 +1,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
@ -11,14 +14,30 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
namespace Cosmos.VS.Debug {
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window {
public MainWindow() {
InitializeComponent();
}
public void ThreadStartClient(object obj) {
using (var xPipe = new NamedPipeClientStream(".", "CosmosDebug", PipeDirection.In)) {
// The connect function will indefinately wait for the pipe to become available
// If that is not acceptable specify a maximum waiting time (in ms)
xPipe.Connect();
using (var xReader = new StreamReader(xPipe)) {
string xLine = xReader.ReadLine();
Dispatcher.Invoke(DispatcherPriority.Normal,
(Action)delegate() {
listBox1.Items.Add(xLine);
}
);
}
}
}
}
}

View file

@ -10,6 +10,11 @@
because we deploy even at dev time with a setup.exe, we need to deploy it. VS
Tool Window packages use WPF UserControls though, so for now we use this
separate standalone EXE which uses WPF UserControls.</p>
<p>
This is also easier to debug because it can just be rebuilt without affecting
Visual Studio. Maybe in the future the VSIP package can just reference this
package to and use the user controls, so for debugging and development of this
project, it could be used instead.</p>
</body>
</html>