It is not practical to use print or alert functions for debugging. Especially when threading is used (setInterval, setTimeout).
A browser without a debugger is not suitable for rich application development.
Safari needs a console that is read/write.
> a = 3;
> b =2
> a + b
Have you looked at Drosera?
Drosera's console does look promising.
I keep getting an error with Drosera's console: "In order to eval your script, you need to pause the debugger."
That is after pausing. I restarted. I tried about:blank. Same error.
The UI could eventually use an eval or run button, and even possibly allow mulit-line input (return doesn't execute run).
Please reassign or move this bug to the appropriate component/group.
Confirmed with a local debug build of WebKit r21332 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).
* STEPS TO REPRODUCE
1. Start Safari/Webkit.
2. Open one window with a URL of: about:blank
3. Start Drosera.
4. Attach to Safari.
5. Click "Pause" button.
6. Click "Console" button.
* EXPECTED RESULTS
The statement should execute without a context in the Safari window (or there should be a way to create a stand-alone context).
* ACTUAL RESULTS