This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What are the executable lines of code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What are the executable lines of code " Watch "What are the executable lines of code " New topic
Author

What are the executable lines of code

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

What are the executable lines of code infront of which i can put the break point to debug through say RAD/eclipse
( I came to know that
response.getWriter().println(new Date());
is a not executable code. not sure why)
Is there is non executable code as well? if so what are the differences between them.
Any links, ideas, sample code, resources highly appreciated. Thanks in advance
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

It definitely is executable. What may be happening is that Eclipse isn't running through its internal build cycle, or it's not updating some indexes, or something like. Therefore, it's confused about what is actually on the line that you marked. If you are doing an external build and just attaching the debugger to an external process, the breakpoint should still work, despite what Eclipse says.
 
Consider Paul's rocket mass heater.
 
subject: What are the executable lines of code
 
Similar Threads
exitValue()
Can I get Java to call external program to do work
Frame Icon
How to EXEC each line in a file?
ProjectMetrics | Urgent