943,985 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1009
  • C RSS
Jun 19th, 2007
0

When I use a debugger if a have a function i go to assembly-it is not a bug

Expand Post »
#include<stdio.h>

void print_message(void);
void print_message(void)
{
printf("This is a bug\n");
}

int main()
{
print_message();
}

I'm using VS 2005 SP1+SP for Vista on Vista buisness and as I wrote in Title when I have functions in my programs and I start debugging F10..F11, and debugger encounter a function instead to the fuctinon it goes to Assembly code <crtexe.c....why not crtexe.cpp?>and as you see I don't have logical bug(That would take me to assembly....)
I can't use debugger no more
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
math_man is offline Offline
2 posts
since Jun 2007
Jun 19th, 2007
0

Re: When I use a debugger if a have a function i go to assembly-it is not a bug

Do you have your debugging switches set up correctly? If you're not storing debugging information then the only thing the debugger can do is take you to a disassembly.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jun 19th, 2007
0

Re: When I use a debugger if a have a function i go to assembly-it is not a bug

my debugger is set up correctly. I have called my friend how is programming for ages and we checked all parameters now I am uninstalating VS and WTF in middel of uninstalation MessageBox this app must be closed 2849 and what is that Machine Debug Menager-some kind of Vista Service, and best of all it can not be stoped so I had to ignorit.I am returning to XP and Linux
Reputation Points: 10
Solved Threads: 0
Newbie Poster
math_man is offline Offline
2 posts
since Jun 2007
Jun 19th, 2007
0

Re: When I use a debugger if a have a function i go to assembly-it is not a bug

What narue meant - flags were set so the compiler put symbol names in the image file. When flags are set NOT to output symbols, then you get assembler.
Reputation Points: 62
Solved Threads: 10
Junior Poster
jim mcnamara is offline Offline
179 posts
since May 2004
Jun 20th, 2007
0

Re: When I use a debugger if a have a function i go to assembly-it is not a bug

In Visual Studio 6, by default it creates 2 configurations "Win32 - Debug" and "Win32 - Release". The way to go to debug build is somewhere you have an option (think in Project menu) to "Set active configuration". There ensure that you've selected "Win32 - Debug".
One way to know which configuration you have selected is to look at the name of your output directory:
- debug means "Win32 - Debug"
- release means "Win32 - Release" => This is where you get assembly code.
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: detecting pushbutton
Next Thread in C Forum Timeline: to find the execution time of a code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC