Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with debugger Pin
Raghavendra Pise30-Nov-06 0:33
Raghavendra Pise30-Nov-06 0:33 
GeneralRe: Problem with debugger Pin
prasad_som30-Nov-06 1:03
prasad_som30-Nov-06 1:03 
GeneralRe: Problem with debugger Pin
Raghavendra Pise30-Nov-06 1:25
Raghavendra Pise30-Nov-06 1:25 
AnswerRe: Problem with debugger Pin
kakan29-Nov-06 23:40
professionalkakan29-Nov-06 23:40 
GeneralRe: Problem with debugger Pin
Raghavendra Pise30-Nov-06 0:27
Raghavendra Pise30-Nov-06 0:27 
GeneralRe: Problem with debugger Pin
kakan30-Nov-06 0:51
professionalkakan30-Nov-06 0:51 
GeneralRe: Problem with debugger Pin
Raghavendra Pise30-Nov-06 1:08
Raghavendra Pise30-Nov-06 1:08 
GeneralRe: Problem with debugger Pin
kakan30-Nov-06 1:52
professionalkakan30-Nov-06 1:52 
OK.

Assume you did wrote some code, i.e. a function.
Then you put a breakpoint in that function.

Later on you rewrote the entire function, but you didn't want to remove the first version of it.
So you commented out (or defined out) the function (with the breakpoint still there).

Now, the breakpoint cannot be reached, so VC++ will warn you and disable the breakpoint.

An example:

void class::func()
{
m_classvar = 0; // You out a breakpoint here
}

Now, you rewrite the function (and comment out the old version of it), like this (or with /* ... */):
(notdef is not defined)

#ifdef notdef
void class::func()
{
m_classvar = 0; // You out a breakpoint here
}
#else
// The rewritten function.
void class::func()
{
m_classvar = 4;
}
#endif

So, your breakpoint is set on a piece of code that will never be compiled, and hence, it will be disabled when you start your debugging session.


Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

GeneralRe: Problem with debugger Pin
Raghavendra Pise30-Nov-06 3:19
Raghavendra Pise30-Nov-06 3:19 
GeneralRe: Problem with debugger Pin
kakan30-Nov-06 4:08
professionalkakan30-Nov-06 4:08 
QuestionVS2005 bug??? [modified] Pin
narayanagvs29-Nov-06 18:44
narayanagvs29-Nov-06 18:44 
AnswerRe: VS2005 bug??? Pin
prasad_som29-Nov-06 19:50
prasad_som29-Nov-06 19:50 
GeneralRe: VS2005 bug??? Pin
narayanagvs29-Nov-06 19:57
narayanagvs29-Nov-06 19:57 
GeneralRe: VS2005 bug??? Pin
prasad_som29-Nov-06 20:03
prasad_som29-Nov-06 20:03 
GeneralRe: VS2005 bug??? Pin
narayanagvs29-Nov-06 20:04
narayanagvs29-Nov-06 20:04 
AnswerRe: VS2005 bug??? Pin
Galatei30-Nov-06 4:19
Galatei30-Nov-06 4:19 
QuestionHow to assign a hyperlink to text from the static control? Pin
Sameer_Thakur29-Nov-06 18:27
Sameer_Thakur29-Nov-06 18:27 
AnswerRe: How to assign a hyperlink to text from the static control? Pin
PJ Arends29-Nov-06 19:23
professionalPJ Arends29-Nov-06 19:23 
Questionadding item to list control Pin
neha.agarwal2729-Nov-06 17:54
neha.agarwal2729-Nov-06 17:54 
AnswerRe: adding item to list control Pin
CPallini29-Nov-06 20:27
mveCPallini29-Nov-06 20:27 
QuestionHow to pass parameters to a Exe file Pin
poda29-Nov-06 16:51
poda29-Nov-06 16:51 
AnswerRe: How to pass parameters to a Exe file Pin
Nibu babu thomas29-Nov-06 17:10
Nibu babu thomas29-Nov-06 17:10 
AnswerRe: How to pass parameters to a Exe file Pin
prasad_som29-Nov-06 19:42
prasad_som29-Nov-06 19:42 
GeneralRe: How to pass parameters to a Exe file Pin
poda30-Nov-06 4:22
poda30-Nov-06 4:22 
GeneralRe: How to pass parameters to a Exe file Pin
prasad_som30-Nov-06 19:57
prasad_som30-Nov-06 19:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.