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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.
Having success with it? Any significant advantages over
the existing free version?
Wayne
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~ ~
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
> 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
can anybody help?? sad:)