<commit_before>---
layout: post
title: Source Maps with Chrome Canary and Rails
---

Update: Apperently this works fine in Chrome as well as Chorme Canary. Thanks Gábor.

I was having problem piecing together all the steps to enabling source maps in <span style="text-decoration: line-through">Canary</span> Chrome. I really wanted to get it working with the rails-sass gem that comes with Rails 3, and the Asset Pipeline.

Eventually I got things working, this is what I did:

## Step 1:

In Chrome  navigate to `chrome://flags/`

## Step 2:

Search for "Developer Tools experiments" and enable

<img src="/images/source-map-01.png" style="height:500px;" />

## Step 3:

Enable sass support in the developer tools:

1. View-&gt;Developer-&gt;Developer Tools.
1. Click the gear in the bottom right.
1. Choose the Experimental Tab.<commit_msg>Fixing title<commit_after>---
layout: post
title: Source Maps with Chrome and Rails
---

Update: Apperently this works fine in Chrome as well as Chorme Canary. Thanks Gábor.

I was having problem piecing together all the steps to enabling source maps in <span style="text-decoration: line-through">Canary</span> Chrome. I really wanted to get it working with the rails-sass gem that comes with Rails 3, and the Asset Pipeline.

Eventually I got things working, this is what I did:

## Step 1:

In Chrome  navigate to `chrome://flags/`

## Step 2:

Search for "Developer Tools experiments" and enable

<img src="/images/source-map-01.png" style="height:500px;" />

## Step 3:

Enable sass support in the developer tools:

1. View-&gt;Developer-&gt;Developer Tools.
1. Click the gear in the bottom right.
1. Choose the Experimental Tab.
{'fraction_non_alphanumeric': 0.09188544152744631, 'fraction_numerical': 0.014319809069212411, 'mean_word_length': 4.09726443768997, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5832527', 'n_tokens_mistral': 524, 'n_tokens_neox': 483, 'n_words': 233}