473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 1168
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
6
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or...
6
by: Peter Afonin | last post by:
Hello: I'm running Windows server 2003. I've never had any problems with debugging, but now I cannot debug ANY of my projects. I'm getting this error: "Error while trying to run project:...
6
by: Joe Rattz | last post by:
I have a web page (aspx and aspx.cs) that I cannot debug for some reason. The breakpoint will have the little red dot with the question mark and the tooltip says "The breakpoint will not...
2
by: Scott Adams | last post by:
Does anyone know of some good resources to use when troubleshooting why one cannot debug ASP.NET apps? I am using Win2K pro SP4 (IIS 5) on a brand new machine and I cannot debug even the most...
1
by: KyleK | last post by:
I am developing a standalone .exe in VB.NET. This is my first full application since vb6. The sln. contains 2 projects and around 50 classes(including forms). For the first 6 weeks it was...
8
by: mike2036 | last post by:
I have an application (that has unmanaged code) and when I launch it without 'FullTrust' permissions (LocalIntranet_Zone), it crashes. When I set 'FullTrust' permissions, it launches fine. Is...
0
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
0
by: shamirza | last post by:
· What is view state and use of it? The current property settings of an ASP.NET page and those of any ASP.NET server controls contained within the page. ASP.NET can detect when a form is requested...
1
by: =?Utf-8?B?TWlrZSBN?= | last post by:
Hi, My conversion seems from VB6 to VB.Net of an interface to an API seem to have gone OK, but when I look at the output from the Debug.Print("Active server is " & xmlServerActive) statement,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.