Skip to content

Instantly share code, notes, and snippets.

@sheshtawy
Created March 19, 2021 12:54
Show Gist options
  • Save sheshtawy/198b7a68d141b19d2e25d99725a0e5dc to your computer and use it in GitHub Desktop.
Save sheshtawy/198b7a68d141b19d2e25d99725a0e5dc to your computer and use it in GitHub Desktop.
Some handy VS Code snippets for Elixir debugging, follow the steps here to create a new snippets file for elixir, the add these to it https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets
{
"IEx.pry": {
"prefix": "pry",
"body": [
"require IEx",
"IEx.pry()$0"
],
"description": "Insert a pry breakpoint"
},
"IO.inspect": {
"prefix": "inspect",
"body": [
"IO.inspect($1)$0"
],
"description": "Insert a pry breakpoint"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment