调试AutoCAD模块(Debugging an AutoCAD module)
我正在开发一个用于AutoCAD的dll模块项目,它为环境增加了一些新功能(如菜单,对象等)。 自然地,菜单中的模块有一些错误。
问题如下,当我在对话框,菜单项,编辑字段或某些操作过程中看到一些错误时,如何在源代码中找到对应的地方负责? 除了普通的调试之外,我应该使用哪些工具?
我在VS2010中使用C ++。 源代码有大约500000行,所以需要一段时间才能熟悉它。
I am working on a project which is a dll module for AutoCAD, which adds some new functionality (like menus, objects, etc.) to the environment. Naturally, there are some bugs in the menus, objects of the module.
The problem is as follows, when I see some bug in a dialog, menu item, edit field, or during some operation how do I find the corresponding place in the source code that is responsible for it? What tools should I use besides the ordinary debugging?
I use C++ in VS2010. The source code has about 500 000 lines, so it takes some time to get acquainted with it.
原文:https://stackoverflow.com/questions/8518030
最满意答案
Visual Studio不会自动添加存储过程,这有点奇怪,因为它在创建模型时会自动添加它。
要添加它,请调出ADO.net模型图,然后
Add New...->Function Import...
Visual Studio doesn't add the stored procedure automatically, which is a bit odd because it does add it automatically when creating the model.
To add it, pull up the ADO.net model diagram, and
Add New...->Function Import...
相关问答
更多-
根据DaveD的 回答 ,这些步骤解决了这个问题: 在您的.edmx ,rt单击并选择模型浏览器 。 在模型浏览器中(在VS 2015默认配置中,它是解决方案资源管理器中的一个选项卡),在模型下展开功能导入 。 双击您的存储过程。 单击“ 返回集合 - 复杂”旁边的“ 更新”按钮(如果不返回标量或实体) 点击确定,然后保存 .edmx以反映整个项目中存储过程的字段更改。 Based on this answer by DaveD, these steps address the issue: In your ...
-
谷歌搜索了一段时间后,我发现了一个奇怪的解决方案: IF 1=0 BEGIN SET FMTONLY OFF END 在存储过程开始时,设计人员可以正确获取架构信息。 这段代码显然永远不会运行,但它解决了这个问题。 FMTONLY仅与返回有关存储过程的元数据有关。 我正在使用SQL Server 2005。 After googling for a while I found a bizarre solution putting: IF 1=0 BEGIN SET FMTONLY OFF END At ...
-
您实际上并没有打开连接或执行SQL命令。 通常,执行简单命令的方式是: using (var conn = new SqlConnection(connectionString)) { using (var comm = conn.CreateCommand()) { conn.Open(); comm.CommandText = "SOME SQL HERE"; // command type, parameters, etc. ...
-
从字面上看,你的每一个点都可以通过存储过程提供......你不仅可以使用带有CREATE或ALTER命令的.sql文件来存储过程,就像你现在管理它一样,但是你可以更进一步,使用SQL数据库项目类型以更好的方式部署它们... https://msdn.microsoft.com/en-us/library/xee70aty(v=vs.140).aspx 但我会注意到存储过程并不会自动提高性能...如果你读到这可能是因为它们更容易参数化,所以可以重新计划。 使用适当的参数化查询,您将获得相同的好处,因此我认为您 ...
-
Visual Studio不会自动添加存储过程,这有点奇怪,因为它在创建模型时会自动添加它。 要添加它,请调出ADO.net模型图,然后 Add New...->Function Import... Visual Studio doesn't add the stored procedure automatically, which is a bit odd because it does add it automatically when creating the model. To add it, p ...
-
我不知道自动执行它的工具,但这是一个示例堆栈 移动应用程序 - > Asp.Net Web API - > EF /代码优先 - > SP - >数据库 I don't know of a tool to automatically do it, but here is a sample stack Mobile App --> Asp.Net Web API --> EF / code first --> SP --> DB
-
您需要使用SQL Server对象资源管理器,而不是服务器资源管理器。 名字的不幸合流。 You need to use the SQL Server Object Explorer, not the Server Explorer. Unfortunate confluence of names.
-
尝试从数据库添加新的存储过程时,我遇到了一个问题: 从数据库更新模型显示所有存储过程中的额外行更改并显示在Visual Studio中的“包括更改”中。 这些额外的行只是在方法声明之间添加的空行。 它们与core.autocrlf和eol(行尾)字符无关。 如果您添加/提交这些更改,下次更新模型时,您不应再次看到这些额外的行(因为它们已经存在)。 所以这不是一个实际问题,只是默认情况下Visual Studio格式化该文件的方式。 您可以继续执行这些更改,如图所示。 I was facing a issue ...
-
要打开数据源窗口,请选择View -> Other Windows -> Data Sources ,您也可以尝试短按键Shift+Alt+D To open data source window choose View -> Other Windows -> Data Sources as well you can try the short keys Shift+Alt+D.
-
检查您对数据库的权限,可能您有权创建sp,但不一定要查看或执行它。 编辑:jsut重新阅读你的帖子。 确保您拥有数据库/模式的执行权限。 编辑2:另外,确保您正在使用的登录名实际上已分配给您想要使用的数据库。 Check your permissions on the database, mayhaps you have the right to create the sp, but not necessarily to see or execute it. edit: jsut re-read you p ...