mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
This commit is contained in:
parent
b985fb2cc7
commit
faed46c816
5 changed files with 43 additions and 5 deletions
|
|
@ -119,6 +119,7 @@
|
||||||
<Compile Include="AD7.Definitions\AD7Hresult.cs" />
|
<Compile Include="AD7.Definitions\AD7Hresult.cs" />
|
||||||
<Compile Include="AD7.Impl\AD7PendingBreakpoint.cs" />
|
<Compile Include="AD7.Impl\AD7PendingBreakpoint.cs" />
|
||||||
<Compile Include="AD7.Impl\DebugLocalInfo.cs" />
|
<Compile Include="AD7.Impl\DebugLocalInfo.cs" />
|
||||||
|
<Compile Include="DebugWindows.cs" />
|
||||||
<Compile Include="Engine.Impl\BreakpointManager.cs" />
|
<Compile Include="Engine.Impl\BreakpointManager.cs" />
|
||||||
<Compile Include="Engine.Impl\OperationThread.cs" />
|
<Compile Include="Engine.Impl\OperationThread.cs" />
|
||||||
<Compile Include="AD7.Impl\AD7Engine.cs" />
|
<Compile Include="AD7.Impl\AD7Engine.cs" />
|
||||||
|
|
|
||||||
13
source2/Debug/Cosmos.Debug.VSDebugEngine/DebugWindows.cs
Normal file
13
source2/Debug/Cosmos.Debug.VSDebugEngine/DebugWindows.cs
Normal 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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -3,6 +3,6 @@
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
Title="MainWindow" Height="350" Width="525">
|
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>
|
</Grid>
|
||||||
</Window>
|
</Window>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using System.IO.Pipes;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Data;
|
using System.Windows.Data;
|
||||||
|
|
@ -11,14 +14,30 @@ using System.Windows.Media;
|
||||||
using System.Windows.Media.Imaging;
|
using System.Windows.Media.Imaging;
|
||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
using System.Windows.Shapes;
|
using System.Windows.Shapes;
|
||||||
|
using System.Windows.Threading;
|
||||||
|
|
||||||
namespace Cosmos.VS.Debug {
|
namespace Cosmos.VS.Debug {
|
||||||
/// <summary>
|
|
||||||
/// Interaction logic for MainWindow.xaml
|
|
||||||
/// </summary>
|
|
||||||
public partial class MainWindow : Window {
|
public partial class MainWindow : Window {
|
||||||
public MainWindow() {
|
public MainWindow() {
|
||||||
InitializeComponent();
|
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);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,11 @@
|
||||||
because we deploy even at dev time with a setup.exe, we need to deploy it. VS
|
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
|
Tool Window packages use WPF UserControls though, so for now we use this
|
||||||
separate standalone EXE which uses WPF UserControls.</p>
|
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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
Reference in a new issue