📄 debugging_your_application.htm
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Debugging Your Application" /> <link rel="shortcut icon" href="/favicon.ico" /> <link rel="search" type="application/opensearchdescription+xml" href="/r18/opensearch_desc.php" title="DocR18 (English)" /> <link title="Creative Commons" type="application/rdf+xml" href="/r18/index.php?title=Debugging_Your_Application&action=creativecommons" rel="meta" /> <title>Debugging Your Application - DocR18</title>
<style type="text/css" media="screen, projection">/*<![CDATA[*/
@import "/r18/skins/common/shared.css?97";
@import "/r18/skins/monobook/main.css?97";
/*]]>*/</style>
<link rel="stylesheet" type="text/css" media="print" href="/r18/skins/common/commonPrint.css?97" />
<!--[if lt IE 5.5000]><style type="text/css">@import "/r18/skins/monobook/IE50Fixes.css?97";</style><![endif]-->
<!--[if IE 5.5000]><style type="text/css">@import "/r18/skins/monobook/IE55Fixes.css?97";</style><![endif]-->
<!--[if IE 6]><style type="text/css">@import "/r18/skins/monobook/IE60Fixes.css?97";</style><![endif]-->
<!--[if IE 7]><style type="text/css">@import "/r18/skins/monobook/IE70Fixes.css?97";</style><![endif]-->
<!--[if lt IE 7]><script type="text/javascript" src="/r18/skins/common/IEFixes.js?97"></script>
<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<script type= "text/javascript">/*<![CDATA[*/var skin = "monobook";var stylepath = "/r18/skins";var wgArticlePath = "/r18/index.php/$1";var wgScriptPath = "/r18";var wgScript = "/r18/index.php";var wgServer = "http://doc.spatial.com";var wgCanonicalNamespace = "";var wgCanonicalSpecialPageName = false;var wgNamespaceNumber = 0;var wgPageName = "Debugging_Your_Application";var wgTitle = "Debugging Your Application";var wgAction = "view";var wgRestrictionEdit = ["sysop"];var wgRestrictionMove = ["sysop"];var wgArticleId = "444";var wgIsArticle = true;var wgUserName = null;var wgUserGroups = null;var wgUserLanguage = "en";var wgContentLanguage = "en";var wgBreakFrames = false;var wgCurRevisionId = "1130";/*]]>*/</script>
<script type="text/javascript" src="/r18/skins/common/wikibits.js?97"><!-- wikibits js --></script>
<script type="text/javascript" src="/r18/index.php?title=-&action=raw&gen=js&useskin=monobook"><!-- site js --></script>
<style type="text/css">/*<![CDATA[*/@import "/r18/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";@import "/r18/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";@import "/r18/index.php?title=-&action=raw&gen=css&maxage=18000";/*]]>*/</style>
<!-- Head Scripts -->
<script type="text/javascript" src="/r18/skins/common/ajax.js?97"></script> </head>
<body class="mediawiki ns-0 ltr page-Debugging_Your_Application">
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<a name="top" id="top"></a>
<h1 class="firstHeading">Debugging Your Application</h1>
<div id="bodyContent">
<h3 id="siteSub">From DocR18</h3>
<div id="contentSub"></div>
<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div> <!-- start content -->
<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div><ul><li class="toclevel-1"><a href="#Source_Path_in_Debug_Sessions_for_Visual_Studio_6_and_Visual_Studio_.NET"><span class="tocnumber">1</span> <span class="toctext">Source Path in Debug Sessions for Visual Studio 6 and Visual Studio .NET</span></a><ul><li class="toclevel-2"><a href="#Visual_Studio_.NET"><span class="tocnumber">1.1</span> <span class="toctext">Visual Studio .NET</span></a><ul><li class="toclevel-3"><a href="#Object_Package"><span class="tocnumber">1.1.1</span> <span class="toctext">Object Package</span></a></li><li class="toclevel-3"><a href="#Source_Package"><span class="tocnumber">1.1.2</span> <span class="toctext">Source Package</span></a></li></ul></li><li class="toclevel-2"><a href="#Visual_Studio_6"><span class="tocnumber">1.2</span> <span class="toctext">Visual Studio 6</span></a><ul><li class="toclevel-3"><a href="#Object_Package_2"><span class="tocnumber">1.2.1</span> <span class="toctext">Object Package</span></a></li><li class="toclevel-3"><a href="#Source_Package_2"><span class="tocnumber">1.2.2</span> <span class="toctext">Source Package</span></a></li></ul></li></ul></li></ul></td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script><a name="Source_Path_in_Debug_Sessions_for_Visual_Studio_6_and_Visual_Studio_.NET"></a><h2> <span class="mw-headline"> Source Path in Debug Sessions for Visual Studio 6 and Visual Studio .NET </span></h2><a name="Visual_Studio_.NET"></a><h3> <span class="mw-headline"> Visual Studio .NET </span></h3><p>Visual Studio .Net stores the path of the files found during a debug session and uses it in the next session. In such a case one of the following behaviors can result.</p><ul><li> It looks in the paths that were provided in previous debug session for a new file it does not know.</li><li> It does a substitution of the beginning of the PATH. <dl><dd>For example:<dl><dd>if <tt>C:\build\ACISR16\NTS\SPAbase\PublicInterfaces\base.hxx</tt> is found in <tt>c:\AcisInstall\SPAbase\PublicInterfaces\base.hxx</tt>, </dd><dd>then DevStudio automatically searches for <tt>C:\build\ACISR16\NTS\SPAbase\PublicInterfaces\dcl_base.hxx</tt> in <tt>c:\AcisInstall\SPAbase\PublicInterfaces\dcl_base.hxx</tt></dd></dl></dd></dl></li></ul><a name="Object_Package"></a><h4> <span class="mw-headline"> Object Package </span></h4><p>Object customers have to reference the header folder once and then the "Case 1" (mentioned above) applies and all other header files are found automatically. Path information need not be specified again, unless the solution information has been removed.</p><a name="Source_Package"></a><h4> <span class="mw-headline"> Source Package </span></h4><p>For Source package, Spatial delivers ACIS as it has been built. This includes the interfaces that are already part of the object package. Customers have to reference a source file once and then the "Case 2" (mentioned above) applies and all other files are found automatically. Path information need not be specified again, unless the solution information has been removed.</p><a name="Visual_Studio_6"></a><h3> <span class="mw-headline"> Visual Studio 6 </span></h3><p>The mechanism used in .NET can be applied, if you choose to save the .opt file at the end of your debug session.</p><a name="Object_Package_2"></a><h4> <span class="mw-headline"> Object Package </span></h4><p>The following registry keys specify the source path search: Windows Registry Editor Version 5.00 </p><pre>HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Build System\Components\Platforms\Win32 (x86)\Directories "Path Dirs"="C:\\Program Files\\Microsoft Visual Studio\\Common\\MSDev98\\Bin;C:\\Program Files\\Microsoft Visual Studio\\V<math>C_9</math>8\\BIN; ..... "Include Dirs"="C:\\Program Files\\Microsoft Visual Studio\\V<math>C_9</math>8\\INCLUDE;C:\\Program Files\\Microsoft Visual Studio\\V<math>C_9</math>8\\MFC\\INCLUDE; .... "Library Dirs"="C:\\Program Files\\Microsoft Visual Studio\\V<math>C_9</math>8\\LIB;C:\\Program Files\\Microsoft Visual Studio\\V<math>C_9</math>8\\MFC\\LIB; .... "Source Dirs"="C:\\Program Files\\Microsoft Visual Studio\\V<math>C_9</math>8\\MFC\\SRC;C:\\Program Files\\Microsoft Visual Studio\\V<math>C_9</math>8\\MFC\\INCLUDE; ....</pre><p>These settings can be overridden by the environment variables: <tt>PATH</tt>, <tt>INCLUDE</tt>, <tt>DIR</tt>, <tt>SOURCE</tt> and using "<tt>msdev /USEENV</tt>". There is no concatenation between Registry key and Environment variables. By default, <tt>PATH</tt>, <tt>INCLUDE</tt> and <tt>LIB</tt> is set by <code>vcvars32.bat</code> delivered by Microsoft.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -