Chromeは完全なページの更新を行わずに、JavaScriptを編集することができます。これは、javascript関数またはスニペットのプロトタイプ作成時に役立ちます。Visual Studioで編集と続行などのChromeでJavascriptをリアルタイムで編集する
ブレークポイントをヒットしてから、編集ボタンを押す必要があります。そして、現在の関数が展開されます。そして、あなたは変更を有効にしてそれに戻ることができます。 VS編集ほど素晴らしいとは言えませんが、少なくともそれは何かです。また、いくつかのことは変更できないようです。
ライブのJavaScript編集を行うことができる他のツールがありますか、それとも良い方法がありますか? Visual Studio 2010は私の言う限りではありません。
function test1() {
debugger;
var data_array = [];
var newvar1 = newfunc()+'dc'; // ok - can edit
var newvar2 = "hey2"; // ok - can edit
var newvar3 = 4; // ok can edit
var someobj = {1:"hey2", 2:"string2"}; // no - can not edit values after executed once
var word_array = ["hello", "goodbye", "adios"]; // no - can not edit values after executed once
for (var counter = 0; counter < 500; counter++) {
data_array[counter] = counter + word_array[Math.floor(Math.random() * (word_array.length))];
}
}
function newfunc() {
return "yes44";
}
同様の質問:
Using Google Chrome to debug and edit javascript embedded in HTML page
Editing in the Chrome debugger
自動保存プラグイン http://www.google.com/intl/cs-CZ/events/io/2010/sessions/chrome-developer-tools.html グーグルプレゼンテーション: https://github.com/NV/chrome-devtools-autosave
Operaを使用できます。 Operaでは、インラインJSファイルとJSファイルの編集が可能です。ページをソフトリロードすると、変更内容が適用されます。右クリック>「ソース」>「変更を加える」>「変更を適用」をクリックします。 – XP1
「編集」ボタンはどこですか? – Mark