aspose file tools
The moose likes IDEs, Version Control and other tools and the fly likes Run a Program until specified line Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Run a Program until specified line" Watch "Run a Program until specified line" New topic
Author

Run a Program until specified line

Roger Fed
Ranch Hand

Joined: Oct 17, 2010
Posts: 82

Hello, I've one Question about using NetBeans.
How can i run my program until specified line ???
thanks in advance.

I Hear I Forget, I See I Remember, I Do I Understand.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

You can set a breakpoint on the line that you want the debugger to stop, and then run the program in debug mode.

Put the cursor on the line, then select Debug / Toggle Line Breakpoint (Ctrl + F8). Then, to run it, select Debug / Debug Project or Debug File (if the file contains the main() method). The program will stop in the debugger when the line is reached, and then you can step through it, looking at the values of variables, or let it continue running.

Have a look at: NetBeans Debugger - Short Tutorial.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Roger Fed
Ranch Hand

Joined: Oct 17, 2010
Posts: 82

Thanks very much for your help and your valuable link.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Run a Program until specified line
 
Similar Threads
setting -Xmx1024m on Java command?
Send Monthly News letters to registered Users
WAS 6.1 JMX AdminClient.
What is the input file?
Running a java program with full path\class name