Вопрос

Do we have similar windows API of DebugBreak in Unix/ Linux. I want to debug a daemon process which should open NetBeans when DebugBreak statement is executed. Thanks in advance.

Это было полезно?

Решение 2

Whav! this is what I am looking for Embedded break points in C http://mainisusuallyafunction.blogspot.in/2012/01/embedding-gdb-breakpoints-in-c-source.html and to get sample program have a look in to https://github.com/kmcallister/embedded-breakpoints

Другие советы

there is __builtin_trap() GCC intrinsic.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top