473,465 Members | 1,964 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

can't debug!

I finally got around to taking VS 2008 beta for a test spin, and I
can't debug! I add a breakpoint to any line in my application, and
when I hit "Debug", my program starts, and then immediately ends,
skipping the breakpoint. It's probably a config setting somewhere, but
I've never seen anything like this before. I've been looking for hours
but can't seem to find any way to fix it.
Anyone got a suggestion?
Feb 18 '08 #1
4 2071
Make sure your build configuration is set to Debug instead of Release.

RobinS.
--------------------------
"Lord Zoltar" <lo*********@gmail.comwrote in message
news:bb**********************************@q78g2000 hsh.googlegroups.com...
>I finally got around to taking VS 2008 beta for a test spin, and I
can't debug! I add a breakpoint to any line in my application, and
when I hit "Debug", my program starts, and then immediately ends,
skipping the breakpoint. It's probably a config setting somewhere, but
I've never seen anything like this before. I've been looking for hours
but can't seem to find any way to fix it.
Anyone got a suggestion?
Feb 18 '08 #2
If you are using 64 bit XP or Vista, breakpoints won't work unless you
compile the program for x86 CPU (don't ask me why, but this goes for
Edit-And-Continue as well.) Use the Configuration Manager in the solutions
properties to change targetted CPU.

--
Happy Coding!
Morten Wennevik [C# MVP]
"Lord Zoltar" wrote:
I finally got around to taking VS 2008 beta for a test spin, and I
can't debug! I add a breakpoint to any line in my application, and
when I hit "Debug", my program starts, and then immediately ends,
skipping the breakpoint. It's probably a config setting somewhere, but
I've never seen anything like this before. I've been looking for hours
but can't seem to find any way to fix it.
Anyone got a suggestion?
Feb 18 '08 #3
On Feb 18, 12:27*pm, Morten Wennevik [C# MVP]
<MortenWenne...@hotmail.comwrote:
If you are using 64 bit XP or Vista, breakpoints won't work unless you
compile the program for x86 CPU (don't ask me why, but this goes for
Edit-And-Continue as well.) Use the Configuration Manager in the solutions
properties to change targetted CPU.
No, it was regular 32-bit XP. I had the build set to Debug. It would
happen with even the simplest of all "Hello World!" forms
applications.
But I've been out of the loop for a while, as I had no idea that VS
2008 was out now, past beta. I guess I'll have to download the trial
version or express edition and see if that solves the problem.
Feb 19 '08 #4
On Feb 19, 12:35*pm, Lord Zoltar <lord.zol...@gmail.comwrote:
On Feb 18, 12:27*pm, Morten Wennevik [C# MVP]

<MortenWenne...@hotmail.comwrote:
If you are using 64 bit XP or Vista, breakpoints won't work unless you
compile the program for x86 CPU (don't ask me why, but this goes for
Edit-And-Continue as well.) Use the Configuration Manager in the solutions
properties to change targetted CPU.

No, it was regular 32-bit XP. I had the build set to Debug. It would
happen with even the simplest of all "Hello World!" forms
applications.
But I've been out of the loop for a while, as I had no idea that VS
2008 was out now, past beta. I guess I'll have to download the trial
version or express edition and see if that solves the problem.

So I got around to installing C# express and I am still having the
same problem: I create a new windows Form app, and add a breakpoint to
the InitializeComponent() line and when I run the debugger, it breaks
at that line. When I hit resume, the app end. When I don't have the
breakpoint, the application doesn' teven run.
Any ideas why this is happening?
Mar 1 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Davy | last post by:
Hi all, I use VC and gcc/gdb to compile and debug C/C++ files. But I found some of the debug version of the compiled files are too large to be run in a small RAM. Can I compile C/C++ Debug...
4
by: emma middlebrook | last post by:
I have a question regarding asserting ... here's some code: string GetAssertMessage() { ... prepare a message string and return it... } void SomeMethod() { ...
4
by: xTroLL | last post by:
Hi, I want to get the running mode (DEBUG or RELEASE) of my application ? Somebody can help me ? xTroLL --------------= Posted using GrabIt =---------------- ------= Binary Usenet...
16
by: Dean R. Henderson | last post by:
I have a project built for ASP.NET that recently started running really slow in debug mode (it takes about 10 seconds or more to step from one line of code to the next). This just started...
3
by: Mike | last post by:
I installed SP2 on my boxes and now I can no longer debug my asp.net web app. How can i fix that and be able to debug again?
9
by: dee | last post by:
Hi I'm about to upload my site and I have switched to release version. Is that enough or do I still need to disable <compilation defaultLanguage="vb" debug="true" /> the debug="true" in the .pdb...
15
by: Adam J. Schaff | last post by:
I have noticed that if a user closes a form via pressing return (either while the OK button has focus or if AcceptButton is set to OK for the form) then the "ENTER" keypress event fires ON THE...
6
by: pauldepstein | last post by:
To help me debug, I am writing a lot of information into a stream which I call debug. However, because of the large amount of time taken to print this information, I only want this printed while...
6
by: Andrew Rowley | last post by:
I am having trouble getting debug and release builds to work properly with project references using C++ .NET and Visual Studio 2003. I created a test solution, with a basic Windows form C++...
3
by: rorni | last post by:
Hi, I'm porting code from Windows to HP-UX 11, compiling with g++. I'm getting a compilation error on the system's debug.h include file, which is included very indirectly through a series of...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.