NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Skipping Boring Functions in Debuggers (maskray.me)
Conscat 5 days ago [-]
You can also make your own functions skippable by default with either the `[[gnu::artificial]]` or (the newer and more generalized) `[[gnu::nodebug]]` in GCC and Clang.
kevingadd 5 days ago [-]
In .NET the https://learn.microsoft.com/en-us/dotnet/api/system.diagnost... DebuggerStepThroughAttribute has a similar purpose (though it's ignored if you disable the relevant feature)
dataflow 4 days ago [-]
__declspec(non_user_code) for those wondering about MSVC
davelee 4 days ago [-]
For lldb, checkout the `sif` command. It lets you step into a specific function by name. If the current line is `doFunStuff(a(), b())`, and I want to step past the a and b functions, then I can step into doFunStuff by running `sif Fun`. You could type in the whole name but it works matches by substring.
scotty79 4 days ago [-]
You could also ctrl+click the function name and put breakpoint on the first line of the function body and press F9 to continue execution.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 14:52:34 GMT+0000 (UTC) with Wasmer Edge.