How to debug managed BHO from Visual Studio 2010

I have a managed Explorer panel (working in Internet Explorer) that works quite well. This is currently the only way to debug it:

  • Run IE Outside VS
  • From VS (Debug => Attach) Attach to the process "iexplore.exe"

Trying to do the following:

  • Go to the "Project Properties" => Debug tab
  • Run the external program: c: \ program files (x86) \ internet explorer \ iexplore.exe
  • Command Line Argument: about: blank
  • Hit F5

The first method is very cumbersome. With the second method, iexplore starts, but the debugger does not recognize breakpoints, I don’t know why.

What advice?

+6
source share
1 answer

So ... 3 months after I opened this question, here is the answer. In Visual Studio, open EXE as a new project:

  • File β†’ Open β†’ Project / Solution
  • Change type to exe file
  • Open file c: \ program \ internet explorer \ iexplore.exe

then the public property of the project:

  • There is only one tab "General"
  • Change debugger type to "Managed v4.0"

What is it. F5 will now work. You can add this EXE project to the solution that contains bho managed and set the EXE project as a startup project.

+5
source

Source: https://habr.com/ru/post/904454/


All Articles