输出调试字符串 + DebugView = 不是选项卡!
我使用 OutputDebugString 转储 \t 分隔数据,然后使用 ex-Sysinternals DebugView 捕获它。
问题是 DebugView 中的所有数据似乎都是空格分隔的,因此我需要执行 CTRL+H "\x20" "t" 用制表符替换空格,然后才能使用它(我确实需要制表符分隔的数据)。
有没有办法告诉 DebugView 不要用空格替换制表符? 或者也许有更好的工具可用于捕获 OutputDebugString 函数的输出?
任何想法都非常受欢迎!
I am dumping \t delimited data using using OutputDebugString and then use ex-Sysinternals DebugView to capture it.
The problem is that all the data in DebugView appear to be space delimited, hence I need to perfrorm CTRL+H "\x20" "t" to replace spaces with the tabs before I can use it (I really need tab delimited data).
Is there anyway to tell DebugView not to replace tabs with spaces?
Or maybe there is a better tool available to capture output of the OutputDebugString function?
Any ideas are very welcome!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
看来这是 DebugView 中的一个“功能”。我尝试过 Hoo Wintail,这个家伙收集标签没有任何问题。所以我看到了 3 个解决方案:
我强烈投票支持选项1。
It seems this is a "feature" in DebugView. I have tried with Hoo Wintail and this dude collects tabs without any problem. So I see 3 solutions:
I strongly vote for option 1.
为什么不将它们写入本地日志文件? (仅在调试模式下?)
Why not write them on a local log-file ? (only on debug mode ?)
您可以使用多个空格而不是制表符。
You can use multiple spaces instead of a tab.
DebugOutput 和 DebugView 适用于其名称所暗示的情况:调试。它们并不是要取代文件保存功能。
您可能处于分析调试输出意味着分析制表符分隔格式的情况。找到另一个可以用来代替制表符的字符,例如 |或@或^。
然后在高级编辑器(例如UltraEdit)中打开调试输出并将字符转换回Tab。
DebugOutput and DebugView are intended for situations as implied by their name: debug. They are not intended to replace file-save functionality.
You are probably in the situation where analyzing the debug output means analyzing the tab-delimited format. Find another character that can be used instead of tab, e.g. | or @ or ^.
Then open the debug output in an advanced editor (e.g. UltraEdit) and convert the character back to Tab.