Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
high-level NOP
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bob  
View profile  
 More options Sep 26 2012, 5:12 pm
Newsgroups: comp.programming
From: bob <b...@coolfone.comze.com>
Date: Wed, 26 Sep 2012 14:12:23 -0700 (PDT)
Local: Wed, Sep 26 2012 5:12 pm
Subject: high-level NOP
Am I the only one who adds a lot of "NOP" statements to my code just so I can put a breakpoint there?

For instance, in Java I might add:

System.out.println("whatever");

just so I can put a breakpoint there.

Does anyone else do this?

Should there be a high-level NOP that is easy to type?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Pitts  
View profile  
 More options Sep 26 2012, 5:21 pm
Newsgroups: comp.programming
From: Daniel Pitts <newsgroup.nos...@virtualinfinity.net>
Date: Wed, 26 Sep 2012 14:21:01 -0700
Local: Wed, Sep 26 2012 5:21 pm
Subject: Re: high-level NOP
On 9/26/12 2:12 PM, bob wrote:
> Am I the only one who adds a lot of "NOP" statements to my code just so I can put a breakpoint there?

> For instance, in Java I might add:

> System.out.println("whatever");

> just so I can put a breakpoint there.

> Does anyone else do this?

> Should there be a high-level NOP that is easy to type?

Why not put a break-point on the statement directly after that? That
requires no typing what-so-ever.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Wessel  
View profile  
 More options Sep 26 2012, 6:26 pm
Newsgroups: comp.programming
From: Robert Wessel <robertwess...@yahoo.com>
Date: Wed, 26 Sep 2012 17:26:07 -0500
Local: Wed, Sep 26 2012 6:26 pm
Subject: Re: high-level NOP
On Wed, 26 Sep 2012 14:21:01 -0700, Daniel Pitts

That may not be convenient - consider that if the following statement
begins a loop, your breakpoint will likely hit for every loop
iteration.

But to the OP, yes, on occasion I have, but it's rare enough that any
difficulty in typing it is irrelevant.  But you really want something
with few or no side effects, but that won't get optimized away or use
a lot of resources.  In Windows I've used a call to the (system)
GetTickCount() and ignored the results.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
BGB  
View profile  
 More options Sep 26 2012, 8:48 pm
Newsgroups: comp.programming
From: BGB <cr88...@hotmail.com>
Date: Wed, 26 Sep 2012 19:45:14 -0500
Local: Wed, Sep 26 2012 8:45 pm
Subject: Re: high-level NOP
On 9/26/2012 4:12 PM, bob wrote:

> Am I the only one who adds a lot of "NOP" statements to my code just so I can put a breakpoint there?

> For instance, in Java I might add:

> System.out.println("whatever");

> just so I can put a breakpoint there.

> Does anyone else do this?

> Should there be a high-level NOP that is easy to type?

public static void nop()
        { /* does nothing */ }

...

SomeClass.nop();

?...

maybe as a class:
public class NOP extends Object {
public static void nop()
        { /* does nothing */ }

}

NOP.nop();

?...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bob  
View profile  
 More options Sep 27 2012, 1:54 pm
Newsgroups: comp.programming
From: bob <b...@coolfone.comze.com>
Date: Thu, 27 Sep 2012 10:54:26 -0700 (PDT)
Local: Thurs, Sep 27 2012 1:54 pm
Subject: Re: high-level NOP

It seems like a lot of times the variables I'm interested in are out of scope on the next line.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bob  
View profile  
 More options Sep 27 2012, 1:58 pm
Newsgroups: comp.programming
From: bob <b...@coolfone.comze.com>
Date: Thu, 27 Sep 2012 10:58:01 -0700 (PDT)
Local: Thurs, Sep 27 2012 1:58 pm
Subject: Re: high-level NOP

In Windows C++, you could probably do something like

#define N GetTickCount();

Then you just do a NOP like this:

N

Java probably doesn't have anything that succinct.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Pitts  
View profile  
 More options Sep 27 2012, 4:52 pm
Newsgroups: comp.programming
From: Daniel Pitts <newsgroup.nos...@virtualinfinity.net>
Date: Thu, 27 Sep 2012 13:52:46 -0700
Local: Thurs, Sep 27 2012 4:52 pm
Subject: Re: high-level NOP
On 9/27/12 10:54 AM, bob wrote:

Then put the break-point on the point immediately before?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »