如何识别错误()? [英] How to identify the error() ?

查看:64
本文介绍了如何识别错误()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用Visual Studio 2010.我完成了一个小项目。当我尝试从我的同一台网络计算机检查时,没有任何显示...



我和我的用户正在使用Windows-7。那么如何识别错误?



任何正确的指示都会有所帮助...



谢谢

Hi,
Iam using Visual Studio 2010. I completed a small project. When I try to check from my same network computers nothing is displaying...

Me & My user is using Windows-7. So how to identify the error?

Any right directions will be helpful...

Thanks

推荐答案

基于这些信息我们真的无法帮助 - 你还没有告诉我们什么!



是否有错误消息?

有什么事发生吗?

锁定?



没有显示......不是一个有用的信息,实际上并没有告诉我们太多。



所以 - 你需要做的第一件事就是开始收集一些信息。

将日志记录语句添加到你的启动代码中,它将字符串附加到一个文件中,说明它有多远:如有必要,打开文件,附加行,关闭文件 - 不要打开它或者你可能没有收到任何消息。



看完他们之后失败的运行应该让你知道它有多远 - 你正在寻找你期望的消息,然后没有你应该得到的消息。然后微调日志消息的位置,直到您有一个包含问题的可管理数量的代码。然后你(或我们)有一些工作......
We really can't help based on that information - you haven't told us anything!

Is there an error message?
Is anything happening at all?
Locking up?

"nothing is displaying..." is not a helpful message, and doesn't actually tell us much.

So - the first thing you need to do is start to gather some information.
Add logging statements to your start up code, which appends strings to a file saying how far it has got: If necessary, open the file, append the line, close the file - do not hold it open or you may not get any messages.

Looking at them after a failed run should give you an idea how far it has got - you ar looking for a message you expect, followed by an absence of a message you should have got. Then fine tune the log message placement until you have a manageable amount of code which contains the problem. Then you (or us) have something to work from...


这篇关于如何识别错误()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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