hi all , how are u? i have a question , i have a java project and i want to check if a fucntion is called or executed while the execution of the program ..how can i do this ?....thnx in advance...
weblover 0 Junior Poster
Recommended Answers
Jump to PostAdd a log message in the function.
Example: System.out.println( "Method called" )
Jump to PostYou could lat the function set a public boolean when it's called, then you can check that later?
Jump to PostYou can have a variable take a specific value in the method, and then check that variable's value.
All 9 Replies
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
weblover 0 Junior Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
weblover 0 Junior Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
Metahuman 0 Newbie Poster
weblover 0 Junior Poster
weblover 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.