On Sep 7, 7:41 pm, vicky <[email protected]> wrote:
> @jatin hey  i have still doubt in it actually shift+F5 is for finish
> debug session.

oh yeah - i m sorry - its Ctrl+Shift+F5 for debug mode - anyway u can
alwayz use the debug menu option if u cant remember the key (like
me !)

> wat i am not getting is the way that when i start
> debugging with f7 , how do i then tranfer control to the breakpoint
> line . also it says that it will allow to set breakpoint only on
> executable statements plz help yaar

see, this is what you do -
1. Set the breakpoint on the line where you want execution to stop.
2. Then you DO NOT START DEBUGGING WITH F7. You simply choose Debug
Project from Debug menu or you press Ctrl+Shift+F5. Then the program
control will immediately JUMP to your first breakpoint and halt there.
After that you can continue with F7 or F8 or whatever.

Try this out. Tell me if it doesn't work out - I am sure it will. It's
quite simple actually.

And yeah, its true - you can only set a breakpoint on a statement that
is to be executed. This means that you can't put breakpoints on empty
lines or lines with empty statements (say the line only contains ; !).
The line must be something like i++ or a.x = 2 or for(i = 0; etc.etc.)
etc.

Hope this will clear it up.

> On Sep 7, 6:29 pm, vicky <[email protected]> wrote:
>
> > THANKS jatin. i agree with ur last suggestion but i experimented a
> > lot . actually , i was knowing almost everything what u  taught but
> > not just one thing and that was "DEBUG-MODE" wat i  used to do was
> > pressing  (Shift+F6) after stating to debug which forced program to
> > run completely. ok thanks a lot in the end again
>
> > On Sep 7, 12:51 pm, Jatin <[email protected]> wrote:
>
> > > u move ur cursor 2 d line were u want 2 insert breakpt nd den u press
> > > Ctrl+F8, d line will bcum pink - nd a breakpoint will b inserted at
> > > dat line - or u can simply click in the left margin of the line
> > > 2 remove d break point, u can press Ctrl+F8 again or click in the left
> > > margin
> > > if u again click on left margin or Ctrl+F8 d break point gets inserted
> > > again - so dis feature is called toggle breakpoint
> > > its that simple !
>
> > > wen u run ur program in debug mode (Shift+F5), den d prog execution
> > > will stop at dat line nd u can continue using F8/F7 etc. after dat
>
> > > btw - its a MUCH better idea to google for things like these or do sum
> > > experimentation on a simple program than 2 post them on forums
> > > u shud post on forums only wen u cant get it on google or by sum
> > > experimentation
>
> > > On Sep 7, 12:37 am, vicky <[email protected]> wrote:
>
> > > > i have started  programming in java(netbeans ide) so as to use data
> > > > structures available easily . i donot understand its debugging
> > > > features completely i am comfortable with using (F7,F8-stepover/into)
> > > > options and add-watch otions comfortably but could not understand how
> > > > to use breakpoints. i also donot know difference b/w (add and toggle
> > > > breakoint) plz hel me understand and if possible , anybody tell me how
> > > > and where to use them along with other debugging options like watch-
> > > > expression. plz help  .THANKS IN ADVANCE!!!!!!!!!!!!!!

Cheers,
Jatin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to