請問javaScript要如何debug
目前使用 Aptana Studio, build: 1.5.1.026124 for win我於專案內建一個 .js
想要在裡面寫幾個function
那該如何做 ,才能對裡面的function 作debug
也想在裡面 做類似system.out.println();的方式於console看埋入的斷點結果?
謝謝! Firefox上的Plugin - FireBug可以 如果要逐行除錯,可以試試看 Firefox 的 extension Venkman:
[url]http://www.mozilla.org/projects/venkman/[/url]
另外 Firebug 有 console logging 的功能:
[url]http://getfirebug.com/logging.html[/url] 您好:
我以看過 firefox debug
但想說 用aptana寫的時候,能夠直接在上面debug
比如:
function a(){ bx(x) }
function bx(x){ 1+1+1+1.....; }
我想直接去debug function 哪邊錯了! 這部份我就不熟悉囉,請看看手冊的相關說明:
[url]http://docs.aptana.com/docs/index.php/Main_Page#Debugging_JavaScript_with_the_Aptana_Studio_Debugger[/url] 您好:
我試過 aptana.log(logMessage);
window.dump()
再用debug
結果 都是沒有訊息顯示於 console.............
頁:
[1]