471,066 Members | 1,567 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

[VS.NET]I cannot debug !

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
Mar 2 '06 #1
3 1096
> 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.
br**********************@hotmail.com
Remove only "_nos_pam"
Mar 3 '06 #2
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 !
Mar 3 '06 #3
tlemcenvisit wrote:
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
Mar 4 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Frank Wilson | last post: by
6 posts views Thread by Peter Afonin | last post: by
2 posts views Thread by Scott Adams | last post: by
reply views Thread by shamirza | last post: by
1 post views Thread by =?Utf-8?B?TWlrZSBN?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.