How do I debug erb in yml

When I try to create breakpoints in embedded ruby within test fixtures the red breakpoint dots do not appear.

For instance, I have a yaml file to insert test data into a products table:

<% 1000.times do |n| %>
product_<%= n %>:
  
<% name = Faker::Commerce.product_name %>
  <% department = Faker::Commerce.department %>
  <% delivery = rand(20) == 1 %>
  <% price = Faker::Commerce.price %>
  <% promotion = rand(20) == 1 %>
  name: <%= name %>
  category: <%= department %>
  brand: <%= Faker::Company.name        %>
  promotional_text: <%= Faker::Lorem.sentence(3) %>
  promotion_start_date: <%= rand(100).days.ago.to_s if promotion %>
  promotion_end_date: <%= Time.now if promotion %>
  description: <%= Faker::Lorem.sentence(3) %>
  product_link: http://www.example.com/product
  image_url: http://www.example.com/mypicture.jpg
  delivery_time: <%= "3 working days" if delivery %>
  delivery_cost: <%= "3.95" if delivery %>
  currency: GBP
  price: <%= price %>
  rrp_price: <%= price %>
  store_price: <%= price %>
  stock_quantity: 1
  product_condition: NEW
  manufacturer_part_number: <%= Faker::Code.isbn if rand(40) == 1 %>
  european_article_number: <%= Faker::Code.ean %>
  current_price_margin: -0.09
  last_selling_price_margin: <%= -0.09 if rand(50) == 1 %>
  seller_cost: <%= Faker::Commerce.price if rand(50) == 1 %>
  new_seller_cost: <%= Faker::Commerce.price %>
  keywords: <%= department %>
  bb_name: <%= name %>
  dataset_id: <%= 1 if rand(2) == 1 %>
<% end %>


How do I tell RubyMine that it should also debug .yml files?

1 comment
Comment actions Permalink

Hello, Nick,

sorry for there delay. We have a corresponding issue on our tracker, please vote and follow it:

https://youtrack.jetbrains.com/issue/RUBY-17359 

0

Please sign in to leave a comment.