Break on std::exception

Sysprogs forums Forums VisualGDB Break on std::exception

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #626
    svaha
    Participant

    First of all I’d like to say this is an excellent tool.

    Is it possible to break on this line of code in VisualGDB?

    throw std::invalid_argument("Invalid!");

    In Visual Studio I would expect that I could do this from the Debug menu -> Exceptions -> check on std::exception. That doesn’t seem to work. Is there a GDB startup command I can use to replicate this feature?

    #2596
    ket
    Participant

    Hi,

    We are considering adding support for Debug->Exceptions, currently that is however not supported.

    Use catchpoints to break on exception throws, you can find the relevant gdb documentation here: http://sourceware.org/gdb/onlinedocs/gdb/Set-Catchpoints.html

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