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. Debug a dll

Debug a dll

Scheduled Pinned Locked Moved C#
csharpdebuggingvisual-studioquestion
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.
  • U Offline
    U Offline
    usermans
    wrote on last edited by
    #1

    I was trying to debug a dll I made in C# using Visual Studio .NET 2003. I want to be able to walk through the code and use breakpoints and so... I tried using the debug options and I set the debug action to start the program that uses the dll. The program started but it never stopped at the breakpoints. Then I tried to use a MessageBox where I want to set a breakpoint and the program showed the message correctly. I tried to attach to the process in which the host program runs but it failed with the "failed to attach to process" message. Any answers?

    S 1 Reply Last reply
    0
    • U usermans

      I was trying to debug a dll I made in C# using Visual Studio .NET 2003. I want to be able to walk through the code and use breakpoints and so... I tried using the debug options and I set the debug action to start the program that uses the dll. The program started but it never stopped at the breakpoints. Then I tried to use a MessageBox where I want to set a breakpoint and the program showed the message correctly. I tried to attach to the process in which the host program runs but it failed with the "failed to attach to process" message. Any answers?

      S Offline
      S Offline
      Shy Agam
      wrote on last edited by
      #2

      Check your dll project and verify its set to build a Debug version and not a Release version. Moreover, If I'm not mistaken, I think you have to reference the dll the folder it was created in (i.e. < Project dir >\bin\Debug). If you have copied the dll to another location, and your application which uses it, is referencing the new copy at the new location, it probably won't identify your source code. Again... Not sure of it... :doh: Good luck, Shy.

      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