从调试器获取输入? [英] Getting Input from a debugger?

查看:54
本文介绍了从调试器获取输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们可以像在监视窗口的帮助下一样从调试器获取输入吗?这是我的任务.

我需要从其他地方而不是从UI获取输入.我有11个复选框.一旦我获得了输入复选框的输入,位的位置将变为1,然后在用户的屏幕上我将c的颜色更改或图像更改设置为开".如果我取消选中相同的复选框,它应该更改为0,将其自身关闭,并且我应该像关闭它一样获得另一个图像.用户屏幕上只能显示开/关状态.

我可以通过文本框获取输入.但是我不确定从调试器获取输入.

请在这方面帮助我.

在此先感谢.

Hi all,

Can we get input from a debugger, like with the help of watch window? This is my task.

I need to get the input from elsewhere, not from the UI.I have 11 checkboxes say. once i get d input checkin a checkbox the bit position turns to 1 and in the user''s screen i shud just c a color change or image changin sayin its set to on. and if i uncheck the same checkbox it should change to 0 , turn itself off and I should get another image as in its switched off. Only the status on/off should be on the user''s screen.

I could do this by getting input via a text box.But getting from the debugger is something i am not sure off.

Please help me in this regard.

Thanks in Advance.

推荐答案

因此,您想在发生某些事情时显示某些消息吗?
我猜想调试类 [.点击后,这将在输出窗口中打印我的消息".当然,您也可以设置断点 [ ^ ]并查看变量使用监视窗口.当您的代码多次击中同一行代码时,最后一个选项可能会有些累.
So you want to show certain messages when something happens?
I guess the Debug Class[^] might be what you are looking for. Especially Debug.Print("My message"). This will print "My message" to the output window as soon as it hits. Of course you can also set a Breakpoint[^] and look at variables using the Watch Window. The last option might be a bit tiresome when your code hits the same line of code many times.


不,我不想显示任何消息.会改变颜色的方形类...我希望它们2在打开和关闭状态之间切换..每项检查(1)或取消(0)都完成了...
No i don wanna show any message.. i wanna show somethin lik an image or some solid square kind which changes colrs... i want them 2 toggle between on and off state.. each tym a check (1) or uncheck (0) is done...


是吗确定要由调试器触发此UI操作吗?这是一个相当令人困惑的请求.

我的意思是,如果您真的只希望某些UI在应用程序运行时显示选中/未选中状态...

-在表单上放置标签,并将背景色设置为红色.
-处理复选框的checkchanged事件.
-在经过检查的处理程序中...
-如果选中此框,请将标签背景设置为绿色.
-否则将其设置为红色.

至于尝试在调试过程中从IDE中获得一些视觉提示...可能为IDE编写插件或附加组件可以使您朝这个方向发展...但不确定...通常情况下,您只会将您的复选框添加到监视窗口,并在与UI交互时查看状态更改.

抱歉,如果没有任何帮助...但是,如果没有帮助,请尝试弄清您到底需要执行什么...是在应用程序在UI上运行时是否想要发生的事情,还是调试中实际需要的事情?仅限环境?
Are you sure you want this UI action triggered by the debugger? It''s a rather confusing request.

I mean, if you really just want some UI to show checked/unchecked state when the application is running...

- Drop a label on your form and set the background color to red.
- Handle the checkchanged event for a checkbox.
- In the checkchanged handler...
- If the box is checked, set label background to green.
- else set it to red.

As far as trying to get some visual cue from the IDE during debug... possibly writing a plug-in or add-on for the IDE could get you going in that direction... but not sure... normally you would just add your checkboxes to the watch window and see the state change as you interact with your UI.

Sorry if none of that helps... but if not, try to clarify what exactly you need to happen... is it something you want to happen any time the application runs on the UI, or something that you actually need in the debug environment only?


这篇关于从调试器获取输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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