sharkdp / dbg-macro

A dbg(…) macro for C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a helper function to break into the debugger?

sharkdp opened this issue · comments

We might consider adding a

dbg::break();

function that would manually set a breakpoint (by raising a signal via __builtin_debugtrap(), __debugbreak(), etc).

See: https://stackoverflow.com/a/49079078/704831

Just reverted the changes from #84.

Let's keep this library focused on "printf debugging". Adding
dbg::breakpoint was actually completely orthogonal to that goal.

Also, there is a much better solution with https://github.com/scottt/debugbreak already.