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 the Dll build in Debug mode

Debugging the Dll build in Debug mode

Scheduled Pinned Locked Moved C#
debuggingtutorial
6 Posts 4 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.
  • N Offline
    N Offline
    Nyanoba
    wrote on last edited by
    #1

    Hi.., I need to debug the Dll built in Debug mode. Here i can launch the Debugger but how to give the Code path and Code because all what i has the Dll's..., Could you please suggest some idea's.. Thanks - Biradar

    C _ 2 Replies Last reply
    0
    • N Nyanoba

      Hi.., I need to debug the Dll built in Debug mode. Here i can launch the Debugger but how to give the Code path and Code because all what i has the Dll's..., Could you please suggest some idea's.. Thanks - Biradar

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      Nyanoba wrote:

      Here i can launch the Debugger but how to give the Code path and Code because all what i has the Dll's...,

      Do you have the code base with which the dll was built?

      You talk about Being HUMAN. I have it in my name AnsHUMAN

      N 1 Reply Last reply
      0
      • N Nyanoba

        Hi.., I need to debug the Dll built in Debug mode. Here i can launch the Debugger but how to give the Code path and Code because all what i has the Dll's..., Could you please suggest some idea's.. Thanks - Biradar

        C Offline
        C Offline
        Calla
        wrote on last edited by
        #3

        Assuming you use Visual Studio you can right click your DLL-project and choose Properties. Under the "Debug" section you can choose an external program to be launched as a start action - a program that uses your DLL. Another simple way would be to just add for instance a Console project to your solution, add the DLL project to References and then start that program. If you don't use Visual Studio, and your IDE doesn't support the first method described above, you could still use the second method for debugging. Good luck!

        N 1 Reply Last reply
        0
        • C Calla

          Assuming you use Visual Studio you can right click your DLL-project and choose Properties. Under the "Debug" section you can choose an external program to be launched as a start action - a program that uses your DLL. Another simple way would be to just add for instance a Console project to your solution, add the DLL project to References and then start that program. If you don't use Visual Studio, and your IDE doesn't support the first method described above, you could still use the second method for debugging. Good luck!

          N Offline
          N Offline
          Nyanoba
          wrote on last edited by
          #4

          Yes, we can do that, But my requirment is that i already had a framework and this is the dll which i want to load, So i want to debug the dll without having .cs file . What i has is just an pdb and .dll file. I am able to launch the VS Debugger then how to give thw code to debug, thats the problem ?

          D 1 Reply Last reply
          0
          • _ _AnsHUMAN_

            Nyanoba wrote:

            Here i can launch the Debugger but how to give the Code path and Code because all what i has the Dll's...,

            Do you have the code base with which the dll was built?

            You talk about Being HUMAN. I have it in my name AnsHUMAN

            N Offline
            N Offline
            Nyanoba
            wrote on last edited by
            #5

            Yes., i do have that..,

            1 Reply Last reply
            0
            • N Nyanoba

              Yes, we can do that, But my requirment is that i already had a framework and this is the dll which i want to load, So i want to debug the dll without having .cs file . What i has is just an pdb and .dll file. I am able to launch the VS Debugger then how to give thw code to debug, thats the problem ?

              D Offline
              D Offline
              Daniel Grondal
              wrote on last edited by
              #6

              I don't get it, do you want to debug a dll without an executable?

              //daniel

              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