• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

It always works when I switch debugging on

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    It always works when I switch debugging on

    Code:
    if (log.isDebugEnabled()) {
        log.debug("process() called");
        try {
            String text = message.getBody();
            ....
    Really?
    While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

    #2
    Originally posted by doodab View Post
    Code:
    if (log.isDebugEnabled()) {
        log.debug("process() called");
        try {
            String text = message.getBody();
            ....
    Really?
    Was the previous developer from Luton?
    Coffee's for closers

    Comment


      #3
      I tried something earlier in IE9, and was horrified to see it suddenly had stopped working. Fired up the script debugger; worked fine.

      Fortunately I know this one. I'd left a console.log in my javascript, and in IE9 rather than just ignore it if it's got nowhere to log to, it throws a script exception and kills everything. With the debugger on, console.log has somewhere to go and so the code works.

      They have fixed it in IE10 at least.

      Ah programming. What a laugh.
      Will work inside IR35. Or for food.

      Comment


        #4
        Originally posted by Spacecadet View Post
        Was the previous developer from Luton?
        Fail.
        Knock first as I might be balancing my chakras.

        Comment


          #5
          JavaScript error management

          I think there's a plan b in that.

          Oops I meant plan c and its in the footer below
          merely at clientco for the entertainment

          Comment


            #6
            Originally posted by eek View Post
            JavaScript error management

            I think there's a plan b in that.

            Oops I meant plan c and its in the footer below
            Awesome. Except I need a Java one

            BTW, on your plan C page, if I click "blog" then click "about" it's broken (http://erro.rs/about/) and the "follow us" bit appears to say "follow us f ing" at first glance....
            While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

            Comment


              #7
              Originally posted by doodab View Post
              Awesome. Except I need a Java one

              BTW, on your plan C page, if I click "blog" then click "about" it's broken (http://erro.rs/about/) and the "follow us" bit appears to say "follow us f ing" at first glance....
              I know there are a list of issues on the website I need to fix that is one of many ( other stuff is consuming some time at the moment).

              We do process stacktraces from java but it requires a bit of configuration. If your 500 error page can provide a stacktrace I can provide the code to collect the data.
              merely at clientco for the entertainment

              Comment


                #8
                Originally posted by eek View Post
                I know there are a list of issues on the website I need to fix that is one of many ( other stuff is consuming some time at the moment).

                We do process stacktraces from java but it requires a bit of configuration. If your 500 error page can provide a stacktrace I can provide the code to collect the data.
                The code doesn't throw an error. The error is that the code that is supposed to run gets skipped unless the logging level is set to debug. So you'd need to do some sort of static analysis.
                While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'

                Comment

                Working...
                X