Linux – Why does editing javascript in Chrome Developer Tools not work

google-chromejavascriptlinux

I have Google Chrome 13.0.782.220 on my Ubuntu 10.04 LTS (64-bit).

I try to edit a JavaScript code from an external JS file in the Chrome Developer Tools Scripts pane by double-clicking on the script area. No matter how fast I click, the only effect is to select a nearby word.

Does anybody have an idea why the edit mode isn't activated?

Best Answer

Chrome Webkit Inspector does not allow you to live-edit pretty printed Javascript. Click the pretty print button (Looks like { }) in the Scripts tab to disable pretty-print mode and edit it.

Source: Introduction To Chrome Developer Tools