Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #2254

Re: high-level NOP

From BGB <cr88192@hotmail.com>
Newsgroups comp.programming
Subject Re: high-level NOP
Date 2012-09-26 19:45 -0500
Organization albasani.net
Message-ID <k407oc$5nu$1@news.albasani.net> (permalink)
References <7e1021e0-d4ad-4ad1-8d59-b6c50644a891@googlegroups.com>

Show all headers | View raw


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();

?...

Back to comp.programming | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

high-level NOP bob <bob@coolfone.comze.com> - 2012-09-26 14:12 -0700
  Re: high-level NOP Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-26 14:21 -0700
    Re: high-level NOP Robert Wessel <robertwessel2@yahoo.com> - 2012-09-26 17:26 -0500
      Re: high-level NOP bob <bob@coolfone.comze.com> - 2012-09-27 10:58 -0700
    Re: high-level NOP bob <bob@coolfone.comze.com> - 2012-09-27 10:54 -0700
      Re: high-level NOP Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-09-27 13:52 -0700
  Re: high-level NOP BGB <cr88192@hotmail.com> - 2012-09-26 19:45 -0500

csiph-web