有没有在自己的应用程序使用Visual Studio的监视窗口的方法吗? [英] Is there a way to use Visual Studio's Watch Window in my own App?

查看:84
本文介绍了有没有在自己的应用程序使用Visual Studio的监视窗口的方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基本的消息应用程序,从客户接受请求,并返回它们的响应对象。当我遇到一个畸形的请求对象,我把它序列化到一个数据库日志为二进制领域失败的请求。我希望能够反序列化这些恶意请求对象,并在事后对其进行检查。

I have a basic messaging application that takes requests from clients and returns them response objects. When I encounter a malformed request object I serialize it to a database log for failed requests in a binary field. I'd like to be able to deserialize these malformed request objects and inspect them after the fact.

有没有用在我自己的应用程序的Visual Studio的监视窗口(或类似的东西)的方式?我知道属性网格的,这就是我使用的东西,但现在它会是很酷的使用监视窗口来检查对象,因为监视窗口是大部分的开发人员都熟悉。

Is there a way to use the Visual Studio Watch window (or something like it) in my own app? I'm aware of the property grid and that's what I'm using for now but it'd be cool to use the watch window to inspect the objects since the watch window is what most of the developers are familiar with.

推荐答案

如何使用Visual Studio本身呢?你已经知道如何序列化(所以我相信反序列化)的对象。为什么不写一个应用程序来反序列化,然后勾了VS调试器该应用程序?

How about using Visual Studio itself? You already know how to serialize (and so I presume deserialize) the object. Why not write an app to deserialize it and then hook up the VS debugger to that app?

这篇关于有没有在自己的应用程序使用Visual Studio的监视窗口的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆