Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get Netbeans to catch a SIGABRT?

How to get Netbeans to catch a SIGABRT?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiolinuxtutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Cyrilix
    wrote on last edited by
    #1

    Back in the day, when I used Visual Studio on Windows, you could break on any exceptions or abrupt termination. With Netbeans and Linux C++ development, however, it seems like I have 3 options: Pass and continue (terminates the program), discard and stop, discard and continue. None of these do anything remotely useful. Discard and continue is probably the most useful one, in that it lets you keep on going until you hit a segmentation fault. My goal is to figure out which line of code is causing the initial SIGABRT. Any suggestions?

    N 1 Reply Last reply
    0
    • C Cyrilix

      Back in the day, when I used Visual Studio on Windows, you could break on any exceptions or abrupt termination. With Netbeans and Linux C++ development, however, it seems like I have 3 options: Pass and continue (terminates the program), discard and stop, discard and continue. None of these do anything remotely useful. Discard and continue is probably the most useful one, in that it lets you keep on going until you hit a segmentation fault. My goal is to figure out which line of code is causing the initial SIGABRT. Any suggestions?

      N Offline
      N Offline
      Nemanja Trifunovic
      wrote on last edited by
      #2

      No idea about Netbeans (frankly, this is the first time I've heard anybody is using that for C++ development), but you can set gdb to stop on a signal here are the instructions[^].

      utf8-cpp

      C C 2 Replies Last reply
      0
      • N Nemanja Trifunovic

        No idea about Netbeans (frankly, this is the first time I've heard anybody is using that for C++ development), but you can set gdb to stop on a signal here are the instructions[^].

        utf8-cpp

        C Offline
        C Offline
        Cyrilix
        wrote on last edited by
        #3

        I guess you can do this if you use GDB from the command line, but too bad it doesn't work well from the debugger frontend. Thanks for the suggestion, I'll see if there's anything else that can be done.

        1 Reply Last reply
        0
        • N Nemanja Trifunovic

          No idea about Netbeans (frankly, this is the first time I've heard anybody is using that for C++ development), but you can set gdb to stop on a signal here are the instructions[^].

          utf8-cpp

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          Nemanja Trifunovic wrote:

          frankly, this is the first time I've heard anybody is using that for C++ development

          Second time (I used just a bit). :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups