POV-Ray : Newsgroups : povray.off-topic : Firebug Server Time
3 Sep 2024 23:29:46 EDT (-0400)
  Firebug (Message 21 to 30 of 39)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 9 Messages >>>
From: Jim Henderson
Subject: Re: Firebug
Date: 26 Oct 2010 11:27:32
Message: <4cc6f364$1@news.povray.org>
On Mon, 25 Oct 2010 21:52:54 +0100, Orchid XP v8 wrote:

> It's pretty self-evident that if you put a breakpoint on the name of a
> function, you want it to break every time that function is called.

Perhaps, but it's also self-evident that the function *name* isn't 
executed, so it makes no sense to set a breakpoint on a line that 
contains non-executable code, since a breakpoint interrupts the flow of 
*executable* code. ;-)

> (It's also pretty self-evident that having some visual feedback about
> where you can and can't put breakpoints would help enourmously.)

Now *that* I can't argue with. ;-)

Jim


Post a reply to this message

From: Invisible
Subject: Re: Firebug
Date: 26 Oct 2010 11:38:18
Message: <4cc6f5ea$1@news.povray.org>
On 26/10/2010 04:27 PM, Jim Henderson wrote:
> On Mon, 25 Oct 2010 21:52:54 +0100, Orchid XP v8 wrote:
>
>> It's pretty self-evident that if you put a breakpoint on the name of a
>> function, you want it to break every time that function is called.
>
> Perhaps, but it's also self-evident that the function *name* isn't
> executed

Oh really?

> so it makes no sense to set a breakpoint on a line that
> contains non-executable code, since a breakpoint interrupts the flow of
> *executable* code. ;-)

Until now, I haven't seen a debugger that prohibits you putting 
breakpoints on (say) a completely empty line. I mean, hell, isn't the 
debugger's job supposed to be to make your job *easier*? :-P

> Now *that* I can't argue with. ;-)

Heh. All it needs now is for some helpful soul to suggest that I submit 
a source code patch. :-P


Post a reply to this message

From: Jim Henderson
Subject: Re: Firebug
Date: 26 Oct 2010 11:54:46
Message: <4cc6f9c6$1@news.povray.org>
On Tue, 26 Oct 2010 16:38:18 +0100, Invisible wrote:

> On 26/10/2010 04:27 PM, Jim Henderson wrote:
>> On Mon, 25 Oct 2010 21:52:54 +0100, Orchid XP v8 wrote:
>>
>>> It's pretty self-evident that if you put a breakpoint on the name of a
>>> function, you want it to break every time that function is called.
>>
>> Perhaps, but it's also self-evident that the function *name* isn't
>> executed
> 
> Oh really?

Yes, really.  A function name is non-executable code - it's a reference.

>> so it makes no sense to set a breakpoint on a line that contains
>> non-executable code, since a breakpoint interrupts the flow of
>> *executable* code. ;-)
> 
> Until now, I haven't seen a debugger that prohibits you putting
> breakpoints on (say) a completely empty line. I mean, hell, isn't the
> debugger's job supposed to be to make your job *easier*? :-P

You've never used Borland's C compiler then.  Or MASM, or TASM. ;-)

How exactly does it make the job easier if the debugger lets you set 
breakpoints in places that logically make absolutely no sense?

>> Now *that* I can't argue with. ;-)
> 
> Heh. All it needs now is for some helpful soul to suggest that I submit
> a source code patch. :-P

Well, submit a patch. ;-)

You're welcome.

Jim


Post a reply to this message

From: scott
Subject: Re: Firebug
Date: 26 Oct 2010 12:05:33
Message: <4cc6fc4d$1@news.povray.org>
> Yes, really.  A function name is non-executable code - it's a reference.
>
> How exactly does it make the job easier if the debugger lets you set
> breakpoints in places that logically make absolutely no sense?

I'd argue that setting a breakpoint on a function name means the code breaks 
every time that function is called.  That seems pretty logical to me.


Post a reply to this message

From: Darren New
Subject: Re: Firebug
Date: 26 Oct 2010 13:33:59
Message: <4cc71107@news.povray.org>
Mike Raiford wrote:
> Remember: The function declaration is just that: A declaration. It has 
> no code. 

That's your inner nerd speaking.

The actual answer is "if he tries to put a breakpoint on the function name, 
he wants to breakpoint when the function is called, so we'll actually put 
the breakpoint on the first executable statement of the function."

This is exactly the way in which open source software tends to suck: written 
by geeks, for geeks, which is great unless you're not a geek. :-)

-- 
Darren New, San Diego CA, USA (PST)
   Serving Suggestion:
     "Don't serve this any more. It's awful."


Post a reply to this message

From: Jim Henderson
Subject: Re: Firebug
Date: 26 Oct 2010 17:37:41
Message: <4cc74a25$1@news.povray.org>
On Tue, 26 Oct 2010 17:05:31 +0100, scott wrote:

>> Yes, really.  A function name is non-executable code - it's a
>> reference.
>>
>> How exactly does it make the job easier if the debugger lets you set
>> breakpoints in places that logically make absolutely no sense?
> 
> I'd argue that setting a breakpoint on a function name means the code
> breaks every time that function is called.  That seems pretty logical to
> me.

If I want to do that, I'll set it up on the first line of executable code 
in the function.  That makes logical sense to me.

If I go into, say, the NetWare kernel debugger (which I have spent many, 
many months in), I can set a breakpoint at a "function", but the function 
is a reference to the first executable line of machine code inside the 
function IIRC (Now I think of it, it might be on the call itself - I may 
need to restart my VM and look again at that).

Jim


Post a reply to this message

From: Mike Raiford
Subject: Re: Firebug
Date: 27 Oct 2010 08:43:01
Message: <4cc81e55$1@news.povray.org>
On 10/26/2010 12:33 PM, Darren New wrote:
> Mike Raiford wrote:
>> Remember: The function declaration is just that: A declaration. It has
>> no code.
>
> That's your inner nerd speaking.
>

I don't think it's inner :)

>
> This is exactly the way in which open source software tends to suck:
> written by geeks, for geeks, which is great unless you're not a geek. :-)
>

YES! Exactly. Though I do like some OSS projects. But this is a major 
issue with OSS is it tends to be developed with exactly that mindset.

-- 
~Mike


Post a reply to this message

From: Invisible
Subject: Re: Firebug
Date: 27 Oct 2010 08:50:10
Message: <4cc82002@news.povray.org>
>> This is exactly the way in which open source software tends to suck:
>> written by geeks, for geeks, which is great unless you're not a geek. :-)
>
> YES! Exactly. Though I do like some OSS projects. But this is a major
> issue with OSS is it tends to be developed with exactly that mindset.

"Patches welcome."


Post a reply to this message

From: Darren New
Subject: Re: Firebug
Date: 27 Oct 2010 12:11:25
Message: <4cc84f2d$1@news.povray.org>
Invisible wrote:
>>> This is exactly the way in which open source software tends to suck:
>>> written by geeks, for geeks, which is great unless you're not a geek. 
>>> :-)
>>
>> YES! Exactly. Though I do like some OSS projects. But this is a major
>> issue with OSS is it tends to be developed with exactly that mindset.
> 
> "Patches welcome."

Oh, yes, that works great.

Problem: Only programmers are comfortable with the program.

Solution: Submit code.

Yeah. Think about that one.
-- 
Darren New, San Diego CA, USA (PST)
   Serving Suggestion:
     "Don't serve this any more. It's awful."


Post a reply to this message

From: Orchid XP v8
Subject: Re: Firebug
Date: 27 Oct 2010 17:20:26
Message: <4cc8979a@news.povray.org>
>> "Patches welcome."
>
> Oh, yes, that works great.
>
> Problem: Only programmers are comfortable with the program.
>
> Solution: Submit code.
>
> Yeah. Think about that one.

I suspect that the open source model can work - but only for the 
products that are so popular that there's a crapload of users trying it 
out, and a crapload of developers sufficiently motivated to fix the 
"boring" stuff.

Obligatory XKCD reference: http://xkcd.com/619/

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 9 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.