The debugger way

This commit is contained in:
serjepatoff 2019-10-16 13:33:09 +03:00 committed by GitHub
parent 1bd0f7c5cc
commit cf9185a1df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -353,3 +353,15 @@ Credit: @johnoct
1. Don't even try to exit on your own
2. Ask Senior right away
## The debugger way
Credit: @serjepatoff
### Linux
$ gdb `which vim`
(gdb) r <Enter>
Ctrl-Z q <Enter> y <Enter>
### Mac
$ lldb `which vim`
(lldb) r <Enter>
Ctrl-C q <Enter> <Enter>