Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8509447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:26:13+00:00 2026-06-11T03:26:13+00:00

1) Is it possible to track the number of exceptions being thrown by application?

  • 0

1) Is it possible to track the number of exceptions being thrown by application? Can I write a test that will print me such a number? Uncaught exceptions stops the execution, so its easy, but what about caught exceptions?

2) How do I write a test that will tell me the number of activities completed in a second? For example, average number exceptions thrown by code in a second, average number of entities saved per second, average number of users logged to the site per second etc. For example, I want to put some load on my webapp and find out how many entities it can save per second under such a load, where the limit etc

3) I want to know how many times some line is executed. Can I do it without changing the code?

4) I want to see the value of expression during the execution of the code without changing the code (*)

5) I want to stop the execution of my application not in the breakpoint, but only if some expression or variable is equal to some value (for example, stop app if this variable is null). Without changing the code, of course.

(*) probably I can use Watches for this. Idea debugger has this feature and I can see the value of some expression during the execution. But when the execution reaches that line second time an old value is cleared. How can I look at expression value in a dynamical way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T03:26:15+00:00Added an answer on June 11, 2026 at 3:26 am

    Is it possible to track the number of exceptions being thrown by application?

    When you catch them, count them.

    Can I write a test that will print me such a number?

    Once you have counted them print them. Print numbers in a unit test isn’t very useful as they are usually ignored. It has to be automated.

    Uncaught exceptions stops the execution, so its easy, but what about caught exceptions?

    You are the one catching the exceptions so you have to check your code to record this. If it not your code, you don’t need to worry about testing it.

    How do I write a test that will tell me the number of activities completed in a second?

    Perform a task repeatedly for a second and then print how many times it did it in a second. For long running tests it s can be better to run it for a few seconds and average it. Again, just printing this number is not always very useful.

    I want to know how many times some line is executed. Can I do it without changing the code?

    Are we talking about in a unit test or some other means?

    For a unit test, you can use byte code manipulation but this 100x times more complicated than changing the code.

    You can use code coverage tools which give you this information and a report. e.g. Emma report or Idea’s built in one. Note: this is not built in to the free version.

    I want to see the value of expression during the execution of the code without changing the code

    You can do this with beanshell for the expression and the debug interface. Again this 1000x more complicated than adding a line to the code.

    Normally you would use a debugger for this.

    I want to stop the execution of my application not in the breakpoint, but only if some expression or variable is equal to some value (for example, stop app if this variable is null). Without changing the code, of course.

    You can’t stop on a condition without changing the code.

    Most debuggers support this but they do so by performing a check after stopping the code and automatically continuing if the condition is not met.

    But when the execution reaches that line second time an old value is cleared. How can I look at expression value in a dynamical way?

    Use a Watch instead of Evaluate expression.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write a program which can keep track of the number
Basically, I have a large number of C structs to keep track of, that
I'm writing an integration test where I will be inserting a number of objects
I am writing an application that keeps track of content pushed around between users
I am running a simulation that I need to keep track of number of
In brief: is it possible to track the number of times an Ajax.ActionLink method
Is it possible to track the accelerometer value while under the lock screen? I
Is it possible to track each date about what day (Monday through Sunday) it
I want to prevent sending file on hotmail/gmail accounts. Is it possible to track
Is it possible to list/track http requests made by an iframe in a webpage?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.