Avoid breaking on caught exceptions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Correctness
    • Fully Compatible
    • ALL
    • Hide
      • Install the vscode extension as described in the README
      • Create a file with the name repro.js under the path jstests/noPassthroughWithMongod with the following contents:
      try {
          throw Error("testing");
      } catch (e) {
          jsTestLog.info("got it");
      } 
      • Run the vscode debugger extension as described in the README
      • Start the test with the debugger enabled:
        ./buildscripts/resmoke.py run --suites=no_passthrough_with_mongod --shellJSDebugMode jstests/noPassthroughWithMongod/repro.js
        
      • The debugger breaks at the throw statement, even though the exception would be caught.
      Show
      Install the vscode extension as described in the README Create a file with the name repro.js under the path jstests/noPassthroughWithMongod with the following contents: try { throw Error( "testing" ); } catch (e) { jsTestLog.info( "got it" ); } Run the vscode debugger extension as described in the README Start the test with the debugger enabled: ./buildscripts/resmoke.py run --suites=no_passthrough_with_mongod --shellJSDebugMode jstests/noPassthroughWithMongod/repro.js The debugger breaks at the throw statement, even though the exception would be caught.
    • Correctness 2026-03-24
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-121545 introduced support for automatically breaking on exceptions. However, the debugger breaks also for caught exceptions.

            Assignee:
            Steve McClure
            Reporter:
            Kartal Kaan Bozdogan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: