Unable to debug VSIX project

前端 未结 6 948
隐瞒了意图╮
隐瞒了意图╮ 2020-12-10 14:20

I\'m trying to develop my first visual studio extensions project, I have VS10 SDK installed and was able to create a new project and can build it fine, however when I attemp

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 15:03

    I had the same looking issue - debugging would start but wherever I would set a breakpoint I'd see it "useless" and with "breakpoint will not be hit" annotation. I checked all the stuff in the other answers here and then I found a "contributor guide" in one plugin project repository (permalink to specific version).

    So what helped me was the following: open the project properties, and on the "Debug" tab ensure that:

    1. "Start action" is set to "Start external program" and the path matches the path to devenv.exe - such as "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe" - that's what it was by default.

    2. "Start options" had "command line arguments" set to /rootsuffix Exp - that was missing by default and I had to add it.

    So once I added /rootsuffix Exp it would start working - next time I pressed F5 the breakpoints in the plugin code would work.

提交回复
热议问题