[VS.NET]I cannot debug !

G

Guest

Hi,

I put a breakpoint on a line of code, it became (during the execution) empty
with an exclamation point. I obtained the message "No executable code is
associated with this line" when I point with the mouse on this exclamation
point.
However this line corresponds well to an executable code!
Can somebody help me to solve this problem?
Thanks in advance
 
B

Bruno van Dooren

I put a breakpoint on a line of code, it became (during the execution)
empty
with an exclamation point. I obtained the message "No executable code is
associated with this line" when I point with the mouse on this exclamation
point.
However this line corresponds well to an executable code!
Can somebody help me to solve this problem?
Thanks in advance

This could happen if:
- you are trying to debug a release build of your program.
- you are debugging a debug build that has optimizations enabled.
- you are debugging an older version of your program that does not match the
sources you are looking at.

if optimizations are enabled the compiler can rearrange your code or leave
out things that are not usefull.
that could be a reason this is happening.

in all these cases the compiler could have problems figuring out what that
line matches to.

another possibility that comes to mind is if that portion of code is
disabled with an ifdef so that it is not compiled.

--

Kind regards,
Bruno.
(e-mail address removed)
Remove only "_nos_pam"
 
G

Guest

This problem occurs since I include "myclass.h" in "form2.h"
when I remove the line
#include"myclass.h"
from "form2.h" I can debug "myclass.h"
but the line
#include"myclass.h"
is present in "form1.h" and this line don't cause problem !
 
A

Andre Kaufmann

tlemcenvisit said:
This problem occurs since I include "myclass.h" in "form2.h"
when I remove the line
#include"myclass.h"
from "form2.h" I can debug "myclass.h"
but the line
#include"myclass.h"
is present in "form1.h" and this line don't cause problem !

Your are trying to debug a C++/CLI application ?
You could try to change the debugger type in the project options:

Debugging - DebuggerType - Auto

From Auto to Mixed, Native or Managed.
Perhaps that helps.

Kind regards,
Andre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top