调试引擎(启动器)属性问题 [英] Problems with Debug Engine (Launcher) Properties

查看:69
本文介绍了调试引擎(启动器)属性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我目前正在编写自己的调试引擎,并且启动器配置存在一些问题.
您可以在项目属性" \调试" \启动调试器"列表框中选择我的调试引擎.
因此,我的引擎及其启动器的安装工作正常,并且我可以在项目属性中看到自己的自定义字段.
当我创建Visual C ++调试器启动扩展项目时,项目向导会在生成的xml文件中定义这些属性,如下所示:

Hello
I am currently writing my own Debug Engine and have some problems with the Launcher configuration.
You can select my Debug Engine in the Project Properties \ Debugging \ Debugger To Launch listbox.
So the installation of my engine and its launcher worked fine and I can see my own custom fields in the project properties.
These properties get defined in an xml file that the project wizzard generates when I create a Visual C++ Debugger Launch Extension project and look something like this:

===

...

===

我的问题如下:

1)如何为每个新的C ++本机项目定义我的调试引擎不是默认引擎?
 更改此默认设置会对我的引擎对正常的Visual Studio环境产生重大影响,我不希望这样做.
   有一个名为"Order"的xml令牌,我以为可以解决它,但是它没有任何可观察到的效果...

2)如何为任何新的(或什至已经存在的)StringProperty或BoolProperty定义默认条目?
   有一个名为"Default"的xml令牌,但在新创建的项目中它不会更改任何内容.
   不适用于已包装的Visual Studio本机调试引擎知道的属性,也不适用于我新输入的属性.
 有趣的是,某些字段具有默认值,而该默认值未在该xml文件中定义.
 因此,例如,LocalDebuggerAttach具有默认值"No",并且我找不到任何将其定义为是"的方式. (或"true"或其他任何内容).

1) How can I define that my Debug Engine is NOT the default one for every new C++ native project?
   Changing this default would be a major impact of my engine to the normal Visual Studio environment, and I don't want that.
   There is an xml token called "Order" and I thought that would fix it, but it does not have any observable effect...

2) How can I define a default entry for any new (or even already existing) StringProperty or BoolProperty?
   There is a xml token called "Default", but it does not change anything in a new created project.
   It does not work on properties that the wrapped Visual Studio Native Debug Engine knows, and it also does not work for my new entered properties.
   Interestingly some of the fields have defaults, that are not defined in that xml file.
   So for example the LocalDebuggerAttach has the default value "No" and I could not find any way to define it to "Yes" (or "true" or anything).

有1个想法如何解决这些问题?
问候,
贝尔卡

Any1 an idea how to solve these issues?
Regards,
Belkar

推荐答案

1)如何为每个新的C ++本机项目定义我的调试引擎不是默认引擎?
 更改此默认设置会对我的引擎对正常的Visual Studio环境产生重大影响,我不希望这样做.
   有一个名为"Order"的xml令牌,我以为可以解决这个问题,但是没有任何明显的效果...

1) How can I define that my Debug Engine is NOT the default one for every new C++ native project?
   Changing this default would be a major impact of my engine to the normal Visual Studio environment, and I don't want that.
   There is an xml token called "Order" and I thought that would fix it, but it does not have any observable effect...

一个很好的问题. "vendorname.props"默认情况下,此XML代码段包含在您的项目中的文件:

Excellent question.  The "vendorname.props" file that is included in your project as this XML snippet by default:

< DebuggerFlavor> VendorNameCoolDebugger</DebuggerFlavor>

<DebuggerFlavor>VendorNameCoolDebugger</DebuggerFlavor>

这就是迫使您的调试器成为默认调试器的原因.如果仅当用户针对您正在定义的自定义平台时调试器才可用,那么将您的调试器设置为默认平台可能是正确的选择.但是在你的情况下,听起来像 解决方法只是将其从vendorname.props文件中删除.

This is what forces your debugger to be the default one.  If your debugger is only available when the user targets a custom platform that you're defining, then setting yours as the default can be the right choice.  But in your case it sounds like the fix is simply to remove this line from the vendorname.props file. 

2)如何为任何新的(或什至已经存在的)StringProperty或BoolProperty定义默认条目?
  有一个名为"Default"的xml令牌,但它不会在新创建的项目中更改任何内容.
  它不适用于包装的Visual Studio Native Debug Engine知道的属性,也不适用于我新输入的属性.
  有趣的是,某些字段具有默认值,而该默认值未在该xml文件中定义.
  因此,例如,LocalDebuggerAttach具有默认值"No".并且我找不到任何将其定义为是"的方式. (或"true"或其他任何内容).

2) How can I define a default entry for any new (or even already existing) StringProperty or BoolProperty?
   There is a xml token called "Default", but it does not change anything in a new created project.
   It does not work on properties that the wrapped Visual Studio Native Debug Engine knows, and it also does not work for my new entered properties.
   Interestingly some of the fields have defaults, that are not defined in that xml file.
   So for example the LocalDebuggerAttach has the default value "No" and I could not find any way to define it to "Yes" (or "true" or anything).

另一个好问题.您已经发现的Default xml属性几乎没有用.设置影响Visual Studio的默认值的方法是返回到该vendorname.props文件并在那里设置属性默认值,类似 到我上面建议您删除的那一行.

Another good question.  The Default xml attribute as you've already discovered, is almost useless.  The way to set defaults that impact Visual Studio is to go back into that vendorname.props file and set your property default values there, similar to the line that I advised above that you delete.

顺便说一句,我建议您将自己的所有调试器属性与其他调试器分开.例如,可以考虑使用VendorNameDebuggerAttach,而不是使用LocalDebuggerAttach.

By the way, I suggest you keep all your own debugger properties separate from other debuggers.  For example, rather than using LocalDebuggerAttach, consider using VendorNameDebuggerAttach.

并且(当然)将对VendorNameCoolDebugger的所有引用更改为对您有意义的内容. ;-)

And (of course) change all references to VendorNameCoolDebugger to something meaningful to you. ;-)


这篇关于调试引擎(启动器)属性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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