Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem debugging c# assembly (class library)

Problem debugging c# assembly (class library)

Scheduled Pinned Locked Moved C#
csharpcomdebuggingc++visual-studio
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PankajB
    wrote on last edited by
    #1

    Hi, I have a C++ executable that consumes c# class library by importing the corresponding .tlb file. All works fine, except when I debug c# assembly by setting C++ executable as an external program, all the breakpoints in c# code says "The breakpoint will not currently be hit. No symbols have been loaded for this document" FYI, I can debug C++ code, that's attached as an external program. Below are few steps, I have already tried so far, but have no success. 1. Unregistered c# assembly and registered it back 2. Modified GUID and interface name, registered new assembly manually Other details... 1. I am on Visual Studio 2010 2. For c# assembly, .NET target framework is 2.0, Register for COM interop is checked 3. I am using Win7 64 Bit version Please let me know, in case any further details required. Many Thanks

    L 1 Reply Last reply
    0
    • P PankajB

      Hi, I have a C++ executable that consumes c# class library by importing the corresponding .tlb file. All works fine, except when I debug c# assembly by setting C++ executable as an external program, all the breakpoints in c# code says "The breakpoint will not currently be hit. No symbols have been loaded for this document" FYI, I can debug C++ code, that's attached as an external program. Below are few steps, I have already tried so far, but have no success. 1. Unregistered c# assembly and registered it back 2. Modified GUID and interface name, registered new assembly manually Other details... 1. I am on Visual Studio 2010 2. For c# assembly, .NET target framework is 2.0, Register for COM interop is checked 3. I am using Win7 64 Bit version Please let me know, in case any further details required. Many Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Visual Studio needs access to the *.pdb file. See here[^] on help how to generate one.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups