How to debug a VB6 ActiveX control used in a VB6 application from .NET IDE?
How to debug a VB6 ActiveX control used in a VB6 application from .NET IDE?
Solution: Build the Activex control and the exe with the debug info (pdb).
1. Open the VB6 Activex control's project.
2. Go to project properties -> Compile
3. Check "Create Symbolic Debug Info" -> OK
4. File -> Make ocx.
5. Open the VB6 Application.
6. Do steps 2 and 3.
7. File -> Make exe.
8. Run the exe.
9. Open the .NET IDE.
10. Tools->Debug Processes->Select the exe ->Attach->Close
11. Open the .ctl file you want to debug and put breakpoints.
12. Note that the debugging will be in VC style.
Solution: Build the Activex control and the exe with the debug info (pdb).
1. Open the VB6 Activex control's project.
2. Go to project properties -> Compile
3. Check "Create Symbolic Debug Info" -> OK
4. File -> Make ocx.
5. Open the VB6 Application.
6. Do steps 2 and 3.
7. File -> Make exe.
8. Run the exe.
9. Open the .NET IDE.
10. Tools->Debug Processes->Select the exe ->Attach->Close
11. Open the .ctl file you want to debug and put breakpoints.
12. Note that the debugging will be in VC style.