﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-r2100-文章分类-vs</title><link>http://www.cppblog.com/r2100/category/20844.html</link><description /><language>zh-cn</language><lastBuildDate>Wed, 02 Apr 2014 14:22:37 GMT</lastBuildDate><pubDate>Wed, 02 Apr 2014 14:22:37 GMT</pubDate><ttl>60</ttl><item><title>vs调试行号对不上问题！</title><link>http://www.cppblog.com/r2100/articles/206429.html</link><dc:creator>r2100</dc:creator><author>r2100</author><pubDate>Wed, 02 Apr 2014 02:50:00 GMT</pubDate><guid>http://www.cppblog.com/r2100/articles/206429.html</guid><wfw:comment>http://www.cppblog.com/r2100/comments/206429.html</wfw:comment><comments>http://www.cppblog.com/r2100/articles/206429.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/r2100/comments/commentRss/206429.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/r2100/services/trackbacks/206429.html</trackback:ping><description><![CDATA[在vs调试时经常遇上调试时，行号对不上问题。<br />原来一直以为是符号文件错误，最后发现是行尾不一致<br /><img src="http://www.cppblog.com/images/cppblog_com/r2100/未命名.PNG" width="384" height="200" alt="" /><br /><br />修改方法，转<br /><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;"><strong>原因分析</strong>：可能是写代码的时候行尾的标识可能不一样造成的。默认情况下是坐对行尾进行检查。</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">&nbsp;</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;"><strong>解决办法</strong>：去掉去行尾的检查，或者修改行尾的内容为统一的一种。</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">&nbsp;</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;"><strong>去掉行尾检查的配置</strong>：在选项里-&gt;环境-&gt;文档中有一个"加载时检查一致的行尾"钩去掉就不会检查了。</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;"></p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">&nbsp;</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">当然如果出现乱码可能是因为编码的问题，可以启用UTF-8的检测，在工具-&gt;选项-&gt;文本编辑器-&gt;自动检测不带签名的UTF-8编码，勾选。</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">设置如下：</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;"></p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">&nbsp;</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;"><strong>第二种解决办法：</strong>把行尾格式化一下：</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">把文件的内容全部复制到记事本或者文本编码工具(如editplus)中，然后再复制到vs.net里。这样就可以全部格式化行尾的格式了。</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">&nbsp;</p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;"><strong><span style="font-family: 宋体;">还有一种可能：</span>VSS<span style="font-family: 宋体;">版本太低</span></strong></p><p style="background-color: #ffffff; line-height: 25px; margin-top: 10px; margin-bottom: 10px; color: #333333; font-family: Verdana, Arial, Helvetica, 宋体, sans-serif;">VS.net<span style="font-family: 宋体;">绑定到</span>VSS&nbsp;<span style="font-family: 宋体;">要求</span>VSS<span style="font-family: 宋体;">的版本在</span>6.0C<span style="font-family: 宋体;">以上的版本。如果</span>VSS<span style="font-family: 宋体;">的版本是</span>6.0C<span style="font-family: 宋体;">以下的版本就可能出现这种情况，建议升级</span>VSS<span style="font-family: 宋体;">到</span>6.0d<span style="font-family: 宋体;">的版本。即可解决该问题。</span></p><img src ="http://www.cppblog.com/r2100/aggbug/206429.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/r2100/" target="_blank">r2100</a> 2014-04-02 10:50 <a href="http://www.cppblog.com/r2100/articles/206429.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>