There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Problem debugging in VS 2005


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
lardqube's Avatar
Junior Member with 29 posts.
 
Join Date: Aug 2005
Experience: Intermediate
21-Oct-2006, 11:07 PM #1
Problem debugging in VS 2005
When I try to debug a C/C++ project I get the error "The breakpoint will not currently be hit. No symbols have been loaded for this document". It then enters debug mode, though obviously without breakpoints. It's not specific to any code, and I've already made sure I'm in debug mode (not release) and have tried rebuilding the source. Also I've tried every setting (native only, managed only, mixed, and auto) in project > properties > debugging > debugger type. I don't know what else to try. Any help would be appriciated.
dquigley's Avatar
Computer Specs
Senior Member with 112 posts.
 
Join Date: Apr 2006
Location: Woodinville, WA
Experience: Advanced
21-Oct-2006, 11:54 PM #2
Could you debug the same project before? What kind of project is it (Windows app, DLL, etc.)?

Best,
Dan
lardqube's Avatar
Junior Member with 29 posts.
 
Join Date: Aug 2005
Experience: Intermediate
22-Oct-2006, 02:05 AM #3
So far I've only tried windows apps. It works fine on projects that I've debugged before (with VS 2003), but anything created in 2005 has the same problem.
dquigley's Avatar
Computer Specs
Senior Member with 112 posts.
 
Join Date: Apr 2006
Location: Woodinville, WA
Experience: Advanced
22-Oct-2006, 11:43 AM #4
Right Click your project from the project explorer. Configuration Properties->Linker->Debugging

Is the "Generate Debug Info" set to Yes?
lardqube's Avatar
Junior Member with 29 posts.
 
Join Date: Aug 2005
Experience: Intermediate
22-Oct-2006, 04:08 PM #5
It was set to No. However, after changing it to Yes, the error message was gone but the breakpoints still refused to load.
dquigley's Avatar
Computer Specs
Senior Member with 112 posts.
 
Join Date: Apr 2006
Location: Woodinville, WA
Experience: Advanced
22-Oct-2006, 04:40 PM #6
Couple more questions:

What type of application is this (what template did you use to create it)?
Are you sure the program is being loaded/run?

Best,
Dan
lardqube's Avatar
Junior Member with 29 posts.
 
Join Date: Aug 2005
Experience: Intermediate
23-Oct-2006, 12:30 AM #7
This is any type of application (template or empty). Literally if I would start a new (empty) project, and even make something exceedingly simple like the following I get the problem.

Code:
#include <iostream>

int main()
{
     std::cout << "Hello world!" << std::endl;
     return 0;
}
I'm sure the program is being loaded because it runs perfectly fine when I start it without debugging, and in fact when I debug it starts and runs fine (with no breakpoints to stop the running).
dquigley's Avatar
Computer Specs
Senior Member with 112 posts.
 
Join Date: Apr 2006
Location: Woodinville, WA
Experience: Advanced
23-Oct-2006, 12:55 AM #8
Well you have me stumped... now its onto bizarre stuff. Symbols are being loaded

in
Properties>Config Properties>Debugging is Command set to $(TargetPath)
Properties>Config Properties>Debugging is Attach set to No

Are you running some 3rd party security package or have some wierd credential issue where your account doesn't have the authority to set breakpoints or debug?

If this fails there is always the first thing tech support calls start with ..."Reinstall"

Sorry,
Dan
lardqube's Avatar
Junior Member with 29 posts.
 
Join Date: Aug 2005
Experience: Intermediate
24-Oct-2006, 03:36 PM #9
Both settings in the properties are what you said they should be, and I'm running with full admin priveliges with the only security software installed being Norton Corporate. Looks like I'll have to try a reinstall. Thanks for you help.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 03:18 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.