How to "Break on unhandled exception"

Sysprogs forums Forums VisualGDB How to "Break on unhandled exception"

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27959
    andrew
    Participant

    I’ve created a VisualGdb “Linux” project to run on my BeagleBone:

    int main() {
      throw std::runtime_error("foobar");
      return 0;
    }

    VisualStudio would normally break on the throw statement above, but that is not happening in my VisualGdb projects.
    I’ve checked all the boxes in the Debug->Windows->Exception Settings dialog.

    I see the following quote in the changelog for 5.4: “Added support for stopping on specific C++ exceptions” – is this relevant to my problem?

     

    • This topic was modified 4 years, 7 months ago by andrew.
    • This topic was modified 4 years, 7 months ago by andrew.
    • This topic was modified 4 years, 7 months ago by andrew.
    #27963
    support
    Keymaster

    Hi,

    Please try using the “Signals and Exceptions”  button (lightning icon) in the GDB Session window. This will open gdb-specific exception settings that let you configure specific exceptions.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.