Menu

urgent- I can't debug my dll

chiwing
2009-05-19
2012-09-26
  • chiwing

    chiwing - 2009-05-19

    i have use dev-c++ to build a dll file with.def already

    and i have set the parameter of the host Application.

    however it can't show the variable value when i run the host application, it say the variable = "?" or
    not find in current context

    do i need to download
    https://sourceforge.net/projects/libcwd/
    how to use it ,

    actully , this dll have over my expect using time, so i don't want to do any more risky thing

    for risky thing , i means complicated things

    so i want to use the original method to debug

    use cout / printf( extern "C" {...} )
    i have try so, but there haven't a window output the value i want, how to do it ?
    thnaks

     
    • cpns

      cpns - 2009-05-19

      The variable must be in scope to be visible, and it must be defined in a module that was built with debugging enabled.

      Beyond that you have provided insufficient information to be of greater assistance.

      > i have try so, but there haven't a window output the value i want,

      What does that mean? I understand that English is I guess not your first language, but I am not sure what you are trying to say. If you are creating a GUI app, you can enable the console window merely by selecting a Console Application build - your GUI will still be valid.

      The debugger in Dev-C++ is in all respects inadequate in any case.

      Clifford

       
      • TheDevil

        TheDevil - 2009-06-08

        I'm using a new IDE and compiler for my programs. It's called Microsoft Visual Studio 2010 Beta 1. It has a time limit on it, but the system is worth it. Maybe you should try it for debuging your DLLs.

         
        • Wayne Keen

          Wayne Keen - 2009-06-10

          Having success with it? Any significant advantages over
          the existing free version?

          Wayne

           
    • chiwing

      chiwing - 2009-05-19

      hi, cpns

      [quote]
      The debugger in Dev-C++ is in all respects inadequate in any case
      [quote]

      so which debugger is better?

      i afraid it is difficult to learn how to use debugger, and avoid many setting-->i would like to debug by printf, print variable one by one

      if u think to learn a debugger is easy, and don't need to set lots of thing every time before debug, then tell me the name and how to use it~ ~
      thanks

      btw, this forum not allow user to edit after post , a bit inconvenient~ ~

       
    • chiwing

      chiwing - 2009-05-19

      i have try so, but there haven't a window output the value i want

      i have try to use Print(freq); Print(low); etc

      but there should be a window , like
      http://113.253.41.218:8080/my_meaning_of_window.JPG

      this~ ~

      that means : i have Print the variable , but no react(my program is a .dll)

      how can i know the variable value in excuting process?

      thanks

       
    • cpns

      cpns - 2009-05-20

      > so which debugger is better?

      The debugger with VC++ is best-in-class. VC++ 2008 Express Edition is free.

      > but there should be a window , like
      > http://113.253.41.218:8080my_meaning_of_window.JPG

      If you selected a GUI app, then a console window is not created. You can create a GUI app but select console mode to have both.

      If this is a console app and you don't see a console window, then a number of things may be happening.

      1) Your code crashes as soon as it starts
      2) Your code runs to completion and the window is closed, possibly before it even became visible.

      > i would like to debug by printf, print
      > variable one by one
      That is the dumb way. Smart programmers use a debugger.

      > i afraid it is difficult to learn how to use debugger
      It is not. It is easier than debugging the hard way! It will save you many more hours than it takes to learn.

      > and avoid many setting

      You just build for debug in your project settings. In VC++ it is even easier than Dev-C++ - the default settings are for debug when you create a project.

      Clifford

       
    • chiwing

      chiwing - 2009-05-20

      can anybody help?? sad:)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.