First grep the heroku logs for the message that will state that the debugger service has started:
$ heroku logs -t --app=[APP_ID] | grep 'Debugger listening on'
Then in another shell enable the debugger service of the Node process by connecting through SSH and sending the process SIGUSR1
:
$ heroku ps:exec --app=[APP_ID]