473,699 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Debugger not reaching the first line of code

hi,
I was asked this peculiar question in an interview - There's a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.
Thanks,
Shishir

Apr 5 '06
16 1748
On Sun, 9 Apr 2006 15:06:33 +0200, in comp.lang.c , "Richard G. Riley"
<rg****@gmail.c om> wrote:
On 2006-04-09, pete <pf*****@mindsp ring.com> wrote:
Richard G. Riley wrote:
To the OP


ITYM Original Poster
I thought acronyms were frowned upon here?


It looks like you didn't.


Fair point ... ( I didnt know an acronym for that...).


YGMBTRG.
:-)
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Apr 9 '06 #11
Mark McIntyre wrote:
"Richard G. Riley" <rg****@gmail.c om> wrote:
.... snip ...
About every fourth post here, not to mention the regular 'welcome'
message, mentions it. And frankly anyone who can't use google is
probably not going to make a programmer anyway.
In addition, what is HTH and HAND? I thought acronyms were frowned
upon here?


What on earth gave you that idea?


The fact that we usually yell at imbeciles who insist on using
confusing and silly abbreviations such as 'u', 'ur' and 'plz'.
Acronyms are also pretty silly when their primary purpose is to
confuse the reader. Maybe you should join the Fraternal Order of
Programmers Accustomed to Clarity in Code and Prose. FOPACCAP.

Hope That Helps. Have A Nice Day.

--
"If you want to post a followup via groups.google.c om, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell. org/google/>
Also see <http://www.safalra.com/special/googlegroupsrep ly/>
Apr 9 '06 #12
CBFalconer wrote:
Mark McIntyre wrote:
"Richard G. Riley" <rg****@gmail.c om> wrote:

... snip ...
About every fourth post here, not to mention the regular 'welcome'
message, mentions it. And frankly anyone who can't use google is
probably not going to make a programmer anyway.
In addition, what is HTH and HAND? I thought acronyms were frowned
upon here?

What on earth gave you that idea?


The fact that we usually yell at imbeciles who insist on using
confusing and silly abbreviations such as 'u', 'ur' and 'plz'.
Acronyms are also pretty silly when their primary purpose is to
confuse the reader. Maybe you should join the Fraternal Order of
Programmers Accustomed to Clarity in Code and Prose. FOPACCAP.

Hope That Helps. Have A Nice Day.


"HTH. HAND." is an idiom. I doubt you could call its primary purpose
confusion. It may not be readily understood in all cases, but in this case
the speaker clearly expected it to be, if perhaps not necessarily by the
addressee.

The situation for "u", "ur" and "plz" is similar, except that in these cases
the idioms are considered a mark of unprofessionali ty and/or immaturity.
That their meaning is readily accessible even to the unfamiliar is not
disputed by anyone. Of course, this entire discussion itself is a rather
immature clash of egos with no real goal of a productive consensus, but as
they say, "YMMV".

What would Usenet come to if you could no longer use such eloquent
expressions as "TANSTAAFL" and "YKYBHTLW"? That they are unfamiliar to some
should not hold us back; the acronym dictionaries are only a few lookups away.

S.
Apr 9 '06 #13
In article <44************ ***********@new s.xs4all.nl>,
Skarmander <in*****@dontma ilme.com> wrote:
"HTH. HAND." is an idiom. I doubt you could call its primary purpose
confusion. It may not be readily understood in all cases, but in this case
the speaker clearly expected it to be, if perhaps not necessarily by the
addressee. The situation for "u", "ur" and "plz" is similar, except that in these cases
the idioms are considered a mark of unprofessionali ty and/or immaturity.


*personally*, I consider "HTH. HAND." to -usually- be marks of
unprofessionali ty and/or immaturity, as they are often written in
contexts where they would likely be interpreted as being dismissive.
--
"No one has the right to destroy another person's belief by
demanding empirical evidence." -- Ann Landers
Apr 10 '06 #14
Skarmander wrote:
.... snip ...
The situation for "u", "ur" and "plz" is similar, except that in
these cases the idioms are considered a mark of unprofessionali ty
and/or immaturity. That their meaning is readily accessible even
to the unfamiliar is not disputed by anyone. Of course, this
entire discussion itself is a rather immature clash of egos with
no real goal of a productive consensus, but as they say, "YMMV".


No, they are not similar. They depend on prononciation, and many
participants here have only some writing contact with English, so
prononciation is meaningless to them, and the abbreviations are
meaningless. Besides marking the user as immature they also show
him/her to be careless and imprecise.

--
"If you want to post a followup via groups.google.c om, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell. org/google/>
Also see <http://www.safalra.com/special/googlegroupsrep ly/>
Apr 10 '06 #15
CBFalconer <cb********@yah oo.com> wrote:
"Richard G. Riley" <rg****@gmail.c om> wrote:
In addition, what is HTH and HAND? I thought acronyms were frowned
upon here?
Hope That Helps. Have A Nice Day.


Not necessarily in the case Mr. Riley refers to.

HTH - HAND!

Richard
Apr 10 '06 #16
On Sun, 09 Apr 2006 18:19:05 -0400, in comp.lang.c , CBFalconer
<cb********@yah oo.com> wrote:
Mark McIntyre wrote:
"Richard G. Riley" <rg****@gmail.c om> wrote:
... snip ...

About every fourth post here, not to mention the regular 'welcome'
message, mentions it. And frankly anyone who can't use google is
probably not going to make a programmer anyway.
In addition, what is HTH and HAND? I thought acronyms were frowned
upon here?


What on earth gave you that idea?


The fact that we usually yell at imbeciles who insist on using
confusing and silly abbreviations such as 'u', 'ur' and 'plz'.


Those aren't acronyms.
Acronyms are also pretty silly when their primary purpose is to
confuse the reader.


TAANSTAFL.

:-)
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Apr 10 '06 #17

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

Similar topics

6
11115
by: jonathan | last post by:
everyone, I'd like to be able to debug php scripts on the command line, going through the browser. In other words, set up the debugger to listen and then type in a url and have the code stop before displaying stuff to the browser. Then, step through each individual piece of code, etc, whilst having the output mirrored to either another file or the debugger screen...
4
1568
by: wenjie wang | last post by:
Greetings, I'd like to know is there any situation where your program could crash without reaching the breakpoint which you set at the beginning of main().
13
2931
by: python | last post by:
hello and thanks for reading this, i have been a dos/windows user using some form of the basic language for 30 years now. i own and run a small programming company and there is one feature that keeps me in the windows/basic world. while i will agree that it has not evolved well, it does have one awesome feature that i have yet to see replicated in any linux product that i know about so far. i am a long time windows user and have had...
2
2996
by: Ioannis Hadjichambis | last post by:
I am trying to debug my program using the DDD debugger. I have also downloaded a manual for the debugger but I cannot RUN my program in the debugger. I use the -g flag when compiling. I then write to the command line > ddd table2 Then the debugger pops up and i press Programs->Run where it asks for arguments and because my program doesn't need any, I don't provide it with any and so I check the blank line. I always get the following:
7
1651
by: Piet Van Vlierberghe | last post by:
We are a software firm developing in C++ and we recently made the step from Microsoft Visual Studio 6 to Microsoft Visual Studio .NET 2003. We are really excited about the quality of the compiler; however there seem to be some issues with the debugger or the combination of our code with the debugger that makes debugging very slow and inconvenient. Since our efficiency in software development seriously decreased, we are looking for possible...
6
4584
by: bob lambert | last post by:
Help, I have vb.net std 2002, have a windows forms app and am debugging code behind it. I think I am viewing the source, I set the project to debug (as opposed to release), I start the debugger, it stops at a breakpoint. But as I step through, it stops on what appear to be comment lines. It seems I am not looking at the code line for line as it is being executed (I expect comments
18
2957
by: R. Bernstein | last post by:
Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no "restart" ("R" in perldb) or "run" (gdb) command. I was pleasantly pleased discover how easy though it was patch pdb.py and pdb.doc; my patch for this is here: http://sourceforge.net/tracker/index.php?func=detail&aid=1393667&group_id=5470&atid=305470
2
21973
by: Ilkka | last post by:
I have created an C++ application with Windows Forms, ADO and SQL server 2005. Now I need to change something and started debugging the code. Then suddenly I receive an error. "An unhandled exception of type 'System.AccessViolationException' occurred in mscorlib.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." The progran ends on a windows form designer...
0
1515
xarzu
by: xarzu | last post by:
Getting a C# program with a manifest file to run in the debugger ---------------------------------------------------------------- How do I declare a manifest file in the Visual Studio IDE for C# so that I can debug the resulting code? I have been able to add the manifest file, to the exe after I have built the program. But then, when I try to debug my C# code, the program crashes at the point where a function call is made that is used by...
0
9174
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9034
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8883
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7750
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2347
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.