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 8210977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:16:09+00:00 2026-06-07T10:16:09+00:00

So I noticed while debugging a Netbeans Java application when a function call is

  • 0

So I noticed while debugging a Netbeans Java application when a function call is used in an assert function, you cannot hit a breakpoint within that function or step into that function.

At first I thought it had to do something to do with using an overridden function and my overridden function not being called, but I confirmed that is not what is going on. It still gets called, but cannot be stepped into.

Here is the snippet that I tried:

public class Example
{
    public static boolean blah()
    {
        System.out.println("Executing");    //**Breakpoint here
        return true;
    }

    public static void main(String[] args)
    {
        assert(blah());    //Cannot step into or hit breakpoint on this line.
        blah();            //Can here.
    }
}

Anybody have any ideas why this is not working?

  • 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-07T10:16:11+00:00Added an answer on June 7, 2026 at 10:16 am

    By default, assertions are disabled at runtime.

    Perhaps your debugging JVM does not have assertions enabled.

    To enable assertions, specify the -enableassertions (or –ea) switch for your NetBeans debugging JVM parameters. Even though assertions are compiled into the bytecode, they won’t execute without this switch.

    See this link for more

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

Sidebar

Related Questions

While debugging a problem in a WPF application, I have noticed that the TwoWay
While debugging an application earlier, I noticed in Web Inspector that it appears a
While monitoring our application in Perf Mon I noticed that the % of Time
While debugging my Visual Studio 2010 MVC2 solution, I noticed something that I didn't
I've noticed that Visual Studio like to change the port used for my application
I noticed while debugging some Javascript that an extra argument that I was passing
I have noticed that while debugging my site, any request that results in a
I noticed while making a program that a lot of my int type variables
I noticed that many times while developing for an iPhone 3G, BSD socket functions
While reading this class BitmapFactory I noticed that almost all methods inside are static.

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.