-
Save
rails_gem_paths.rb
to your local directory -
Run this command to open a VSCode project containing the local directory and all "active*" and "action*" gems. The script also prints out the gem names in appmap.yml form.
code . $(bundle exec ruby rails_gem_paths.rb)
# - gem: actioncable
# - gem: actionmailbox
# - gem: actionmailer
# - gem: actionpack
# - gem: actiontext
# - gem: actionview
# - gem: activejob
# - gem: activemodel
# - gem: activerecord
# - gem: activestorage
# - gem: activesupport
VSCode is now open. You can copy the - gem:
snippet into your appmap.yml. Uncomment the ones that you want to use.
Note: actionpack
doesn't work right now, due to a bug in the UI. If you get empty AppMaps, remove - gem: actionpack
.