Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created July 18, 2012 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/3138586 to your computer and use it in GitHub Desktop.
Save isaacs/3138586 to your computer and use it in GitHub Desktop.
.[gh:node/v0.8.3-release]isaacs@tum.local:~/dev/js/node-v0.8 v0.8.3 4.1.0(1)-release
$ sudo node -pe process.version
.[gh:node/v0.8.3-release]isaacs@tum.local:~/dev/js/node-v0.8 v0.8.3 4.1.0(1)-release
$ echo $?
139
.[gh:node/v0.8.3-release]isaacs@tum.local:~/dev/js/node-v0.8 v0.8.3 4.1.0(1)-release
$ sudo gdb --args node -pe process.version
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ..... done
(gdb) run
Starting program: /Users/isaacs/dev/js/node-v0.8/node -pe process.version
Reading symbols for shared libraries ++++................................................................................................................................ done
v0.8.3
Program exited normally.
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment