我可以在进程尚未运行的情况下附加到该进程吗?
使用 Visual Studio 2005 的“附加到进程”,是否可以选择要运行的应用程序然后进行调试,而不是选择已在运行的应用程序?
我正在尝试调试 FileMaker 插件,如果打开 FileMaker 然后使用附加到进程,我可以很好地调试它,但我现在想要调试插件的初始化,因此需要在主机应用程序启动后立即进行调试。
这可能吗?
Using Visual Studio 2005's Attach to Process, is it possible to select an application to run and then debug as opposed to an application that is already running?
I am trying to debug a FileMaker Plugin and I can debug it fine if I open FileMaker then use attach to process, but I now want to debug the initialisation of the plugin so need to debug as soon as the host application starts.
Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用
F5
。将exe文件拖放到Studio中,然后启动调试。您可以从 Visual Studio 本身启动 exe,并在“附加 dll”中提供 dll 名称using
F5
. Drag and drop the exe file to Studio and then start Debug. You can launch the exe from Visual Studio itself and provide the dll names in "additional dlls"对于 VS 项目,您可以轻松地在项目属性的“调试”部分中指定要执行的命令。您尚未指定您使用的语言,但据我所知,您可以在所有语言中指定调试命令。
对于 C++,它位于“调试”部分,属性为“命令”。
对于“调试”选项卡下的 C#,指定要启动的外部应用程序。
For a VS project you can easily specify the command to be executed in the Debug section of the project properties. You have not specified what language you're using but AFAIK you can specify the debug command in all of them.
For C++ this is located in the Debugging section, the property is Command.
For C# under the Debug Tab, specify the external application to start.
绝对地。我已经成功使用此处发布的方法和 Windows 调试工具。
您还可以从代码启动该进程并使用 Debugger.Attach 动态启动调试器。
还有一个 Visual Studio 插件 可以为您处理此问题。
Absolutely. I've had success with the method posted here and the Windows Debugging Tools.
You can also launch the process from your code and use Debugger.Attach to launch the debugger dynamically.
There is also a Visual Studio plugin that will handle this for you.