Skip to content

Commit

Permalink
更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
lindexi committed Jun 15, 2024
1 parent e7f9bd9 commit 8f7c257
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file removed Docs/Images/SelectDebugProcess.png
Binary file not shown.
Binary file added Docs/Images/SpySampleUnoApp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dotnetCampus.UISpy.Uno is a tool for inspecting the runtime visual tree of a Ski

## Why This Tool is Needed

The reason for needing this tool is that on the Skia platform, both WPF and GTK use a Surface to render the interface. This results in the original WPF UI debugging tools, such as SnoopWpf, only being able to see an image and not being able to obtain the correct interface structure. dotnetCampus.UISpy.Uno can effectively assist in interface development debugging on Skia-based desktop platforms, such as Skia.Wpf and Skia.Gtk, enhancing the efficiency of developers' interface development, especially when debugging Skia.Gtk applications on the Linux desktop.
The reason for needing this tool is that on the Skia platform, both WPF and GTK and X11 uses a Surface to render the interface. This results in the original WPF UI debugging tools, such as SnoopWpf, only being able to see an image and not being able to obtain the correct interface structure. dotnetCampus.UISpy.Uno can effectively assist in interface development debugging on Skia-based desktop platforms, such as Skia.Wpf and Skia.Gtk and Skia.X11 and so on, enhancing the efficiency of developers' interface development, especially when debugging Skia.Gtk or Skia.X11 applications on the Linux desktop.

## Usage

Expand All @@ -36,7 +36,7 @@ public sealed partial class MainPage : Page

After completing the above preparation work, you can run the project, press F12 to debug the UI interface.

![](./Docs/Images/SelectDebugProcess.png)
![](./Docs/Images/SpySampleUnoApp.png)

## Thanks

Expand Down
4 changes: 2 additions & 2 deletions README_zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dotnetCampus.UISpy.Uno 是一款用来辅助调试 Skia 平台下的 UNO 应用

## 为什么需要此工具

因为在 Skia 平台下,无论是 WPF 还是 GTK 都采用一个 Surface 来渲染界面。这就导致了原本的 WPF 的 UI 调试工具,如 SnoopWpf 等工具,将只能看到一张图片而不能获取正确的界面结构。通过 UnoSpySnoop 可以很好的在基于 Skia 的桌面平台,如 Skia.Wpf 和 Skia.Gtk 上,进行辅助界面开发调试,提高开发者的界面开发效率,特别是调试在 Linux 桌面上的 Skia.Gtk 应用的时候
因为在 Skia 平台下,无论是 WPF 还是 GTK 或 X11 都采用一个 Surface 来渲染界面。这就导致了原本的 WPF 的 UI 调试工具,如 SnoopWpf 等工具,将只能看到一张图片而不能获取正确的界面结构。通过 UnoSpySnoop 可以很好的在基于 Skia 的桌面平台,如 Skia.Wpf 和 Skia.Gtk 和 Skia.X11 上,进行辅助界面开发调试,提高开发者的界面开发效率,特别是调试在 Linux 桌面上的 Skia.Gtk 或 Skia.X11 应用的时候

## 使用方法

Expand All @@ -29,4 +29,4 @@ public sealed partial class MainPage : Page

完成以上准备工作之后,即可运行项目,随后在窗口获得焦点时按 F12 即可进行调试 UI 的界面

![](./Docs/Images/SelectDebugProcess.png)
![](./Docs/Images/SpySampleUnoApp.png)

0 comments on commit 8f7c257

Please sign in to comment.