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. debugging C# dll

debugging C# dll

Scheduled Pinned Locked Moved C#
csharpdebuggingvisual-studiotutorial
3 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
    pnpfriend
    wrote on last edited by
    #1

    Hi I have created dll using C# and add reference to another project that was written in VB.net. so I have two project, one is using C#, the other one is using VB.net. Both written in Visual Studio.net 2005. When I set break point of my function from dll project because that's what I want to debug. So I started running CallingDll VB project in debug mode, I got following message The following module was built either with optimizations enabled or without debug information: C:\myDll.dll To debug this module, change its poject build configuration to Debug mode. To supress this message, disalbe the "Warn if no user code on launch" debugger option. Where should I change it? I went to Project\Properties, I couldnt' find anything that said Debug Mode. I looked into Debug, I found StartAction, Start Options, enable debuggers. I changed put Start external program: "c:\CallDll.exe" and then build and run the project in debug mode. but I still got the same message and I couldnt' debug myDll.dll at all neither from myDll project nor callDll project. I also looked into Build.. I dont 'see anything that is saying debug mode. I check the MSDN and saying the same thing.. to change it to Debug mode. But where should I go and change it so myDll.dll can be debug. I recreated myDll.dll and CallDll.exe using visual studio 2003. I had no prolem debugging. but not with visual studio 2005. Would anyone please tell me how to debug myDll.dll from another project like CallDll?? Thanks

    M 1 Reply Last reply
    0
    • P pnpfriend

      Hi I have created dll using C# and add reference to another project that was written in VB.net. so I have two project, one is using C#, the other one is using VB.net. Both written in Visual Studio.net 2005. When I set break point of my function from dll project because that's what I want to debug. So I started running CallingDll VB project in debug mode, I got following message The following module was built either with optimizations enabled or without debug information: C:\myDll.dll To debug this module, change its poject build configuration to Debug mode. To supress this message, disalbe the "Warn if no user code on launch" debugger option. Where should I change it? I went to Project\Properties, I couldnt' find anything that said Debug Mode. I looked into Debug, I found StartAction, Start Options, enable debuggers. I changed put Start external program: "c:\CallDll.exe" and then build and run the project in debug mode. but I still got the same message and I couldnt' debug myDll.dll at all neither from myDll project nor callDll project. I also looked into Build.. I dont 'see anything that is saying debug mode. I check the MSDN and saying the same thing.. to change it to Debug mode. But where should I go and change it so myDll.dll can be debug. I recreated myDll.dll and CallDll.exe using visual studio 2003. I had no prolem debugging. but not with visual studio 2005. Would anyone please tell me how to debug myDll.dll from another project like CallDll?? Thanks

      M Offline
      M Offline
      Malcolm Smart
      wrote on last edited by
      #2

      [Build][Configuration Manager] ?? Just a guess.

      "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

      "This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

      P 1 Reply Last reply
      0
      • M Malcolm Smart

        [Build][Configuration Manager] ?? Just a guess.

        "More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF

        "This time yesterday, I still had 24 hours to meet the deadline I've just missed today."

        P Offline
        P Offline
        pnpfriend
        wrote on last edited by
        #3

        I found [Build][Comfiguration Manager] in Vistual Studio 2003. But not in visual studio 2005. I'm using Visual Studio 2005. I need to know how to debug myCShart.dll from different program that could be written in VB.Net, C# or C++.

        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