I have tried many Javascript IDE.
Aptana seems to be the best, yet, I don't understand how to use the debugger. I already installed Firebug, and I can see the wrapper.
Say I want to run
var hellostring = "string";
I want to call hellostring, and output "string"
I can do this using the built-in debugger in the browser (for example, using Chrome).
Is there a solution to this?
Do I always have wrap my code around HTML? I am getting frustrated at how to develop javascript projects. I understand that JS needs HTML...
Thanks
2 replies to this topic
#1
Posted 06 August 2011 - 12:35 PM
|
|
|
#2
Posted 06 August 2011 - 01:33 PM
What are you trying to do?
Generally, you will need an html element that has an onclick event that calls a javascript function. You can then use FireBug to set a breakpoint on the function that will be called, and use it to monitor the state of the function's execution. Trying to debug Javascript outside of a function will be challenging.
Generally, you will need an html element that has an onclick event that calls a javascript function. You can then use FireBug to set a breakpoint on the function that will be called, and use it to monitor the state of the function's execution. Trying to debug Javascript outside of a function will be challenging.
#3
Posted 09 August 2011 - 04:25 AM
You want to output hello how? document.write it? console.log it? alert it? And when is your code executed? Remember you can't access the DOM elements before the page is loaded!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









