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

Reply

Join Date: Jun 2007
Posts: 2
Reputation: math_man is an unknown quantity at this point 
Solved Threads: 0
math_man math_man is offline Offline
Newbie Poster

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

 
0
  #1
Jun 19th, 2007
#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
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,602
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 713
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

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

 
0
  #2
Jun 19th, 2007
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.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 2
Reputation: math_man is an unknown quantity at this point 
Solved Threads: 0
math_man math_man is offline Offline
Newbie Poster

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

 
0
  #3
Jun 19th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 178
Reputation: jim mcnamara is on a distinguished road 
Solved Threads: 10
jim mcnamara jim mcnamara is offline Offline
Junior Poster

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

 
0
  #4
Jun 19th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 539
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

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

 
0
  #5
Jun 20th, 2007
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.
Are you Agile.. ?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC