- 
      
- 
        Save macro/e3564946904cb83c1785 to your computer and use it in GitHub Desktop. 
Revisions
- 
        pnc revised this gist Nov 21, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ On your machine, start a hidden Erlang node running the `observer` app: $ erl -name [email protected] -setcookie if-server-has-one -hidden -run observer __N.B.:__ If the server is using `-sname`, you need to use `-sname` as well, because Erlang™. You'll also need to change your system's hostname to match the target host, for the same reason. In _observer_, go to _Nodes_ - _Connect Node_ and type `[email protected]`. 
- 
        pnc revised this gist Oct 14, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ # Using OTP's observer (appmon replacement) remotely $ ssh remote-host "epmd -names" epmd: up and running on port 4369 with data: name some_node at port 58769 
- 
        pnc created this gist Oct 14, 2014 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ $ ssh remote-host "epmd -names" epmd: up and running on port 4369 with data: name some_node at port 58769 Note the `running on port` for `epmd` itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded: $ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host On your machine, start a hidden Erlang node running the `observer` app: $ erl -name [email protected] -setcookie if-server-has-one -hidden -run observer __N.B.:__ If the server is using `-sname`, you need to use `-sname` as well, because Erlang™. In _observer_, go to _Nodes_ - _Connect Node_ and type `[email protected]`. You can also get a remote shell: $ erl -name [email protected] -setcookie if-server-has-one -remsh [email protected]