Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6029371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:52:35+00:00 2026-05-23T04:52:35+00:00

I have a VB6 object that is wrapped by a .NET class. As far

  • 0

I have a VB6 object that is wrapped by a .NET class. As far as I recall it is possible to step through a VB6 object by simply running the VB6 library and inserting a breakpoint at the desired location.

However this does not appear to be working in my case. I have attempted to recompile the VB6 object and re-reference it in my .NET project but this doesn’t appear to have helped.

Where do I go from here? Is there a way to insert Debugger.Launch() equivalent into a VB6 project? Any help would be appreciated!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:52:36+00:00Added an answer on May 23, 2026 at 4:52 am

    Lifted from robgruen’s blog:

    If you are using interop to call into a VB6 ActiveX dll or exe and you
    need to debug your VB6 project you may find yourself having both
    VS.NET and the VB6 IDE open. This can certainly be far from
    efficient.

    Typically you set your VB6 project to “Wait for the Component to be
    created” and you launch your .NET app and then hit breakpoints within
    the VB6 component. Well, there’s an easier way to do this. You can
    actually debug your VB6 component within VS.NET. Here’s what you need
    to do:

    1) Build your VB6 project with symbols.In VB6 open up your vbp file
    and goto “Project->Properties.” Select the “compile” tab and check
    “Compile to Native Code.” Then select the “No Optimization” radio
    button and check “Create Symbolic Debug Info.”

    This will generate a .PDB (Program Database) file along with your
    .EXE. This file contains the debugging information so the VS.NET
    debugger can line up source and hit breakpoints, etc. (Make sure you
    have binary compatibility on your VB6 dll set or you’ll have to drop
    and re-add your reference to the VB6 component in VS.NET.)

    2) Open your .NET project in VS.NET.

    3) Go to the project properties and select the “Configuration
    Properties->Debugging” property page and enable unmanaged debugging.
    For VB.NET projects this option is “Unmanaged code debugging” and for
    C# is “enable unmanaged debugging.”

    4) Select the property page for the solution.

    5) Add to the “Debug Source Files” an entry that points to the path
    where the source code is for the VB6 component.

    6) Add to the “Debug Symbols Files” an entry that points to the folder
    where the .PDB file is that was generated in step 1.

    7) You should now be able to open your .bas, .cls, .frm, etc. files in
    VS.NET and you can put breakpoints in the file. Once you debug the
    debugger will stop on those lines of code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a VB6 dll that is trying to create a COM object using
I have a VB6 program that someone recently helped me convert to VB.NET In
I have a .NET (FW 2.0) library which is used by a COM (vb6)
I have a VB6 COM component which I need to call from my .Net
I have a VB6 application that needs to update it's self. For this purpose,
I have a VB6 class with a method which raises an error: Public Sub
I have rephrased this question. When .net objects are exposed to COM Clients through
I have a COM Callable Wrapper that I'm using from a VB6 program, but
I have a repository class that defines some basic Get/Save/Delete methods. Inside these, I
It is my understanding that for a VB6 COM object when it goes out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.