Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-28-2003, 07:58 PM   PM User | #1
Tails
Regular Coder

 
Join Date: Nov 2002
Posts: 672
Thanks: 1
Thanked 1 Time in 1 Post
Tails is an unknown quantity at this point
idea for a javascript editor

I have an idea for a javascript txt editor. Could there be something to let you run each statement one at a time for trouble shooting? And between each of those pauses, if something goes wrong, let you alert a variable or something in realtime just to verify if a function passed its data on correctly? This sounds like a debugging idea. Will this go anywhere? Or has it already?
Tails is offline   Reply With Quote
Old 04-29-2003, 07:54 PM   PM User | #2
Tails
Regular Coder

 
Join Date: Nov 2002
Posts: 672
Thanks: 1
Thanked 1 Time in 1 Post
Tails is an unknown quantity at this point
Sheesh, I take that as a NO. Well, don't hate me if I use the idea myself. Afterall, nobody has anything to say about it, so it's clearly not your idea or concern.
Tails is offline   Reply With Quote
Old 04-29-2003, 08:08 PM   PM User | #3
beetle
Senior Coder

 
Join Date: Aug 2002
Posts: 3,467
Thanks: 0
Thanked 0 Times in 0 Posts
beetle has a little shameless behaviour in the past
hehe

Well, that would certainly be interesting. it's been a long time since I've done any non-script programming, but when I did the version of TurboPascal I was using would let you step through the code line by line, add variables to a watch window, insert breakpoints, stuff like that. I don't know how easy or hard any of this will be able to do, but I suspect it will not be easy, if possible at all.

Personally, I can't think of how this would be done.

Good luck!
__________________
My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
“Minds are like parachutes. They don't work unless they are open”
“Maturity is simply knowing when to not be immature”
beetle is offline   Reply With Quote
Old 04-29-2003, 08:32 PM   PM User | #4
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Start Mozilla > Tools > Web Development > Javascript Debugger (not Javascript Console which is a different option).

You can download a javascript debugger for IE from the MS web site.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Old 04-29-2003, 09:24 PM   PM User | #5
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
Yes, that is about the same that a debugger does, and Venkman is an excellent such. It's no editor at the same time, though.

If you do that, can you write a stepper with partial stepping abilities, too?

(A stepper is something that goes from the top to the bottom, showing what the code will be at each step of evaluation)

A LISP example:
Code:
Original: (+ (/ 9 (- 5 2)) (* 4 (* (- 10 2) 3)))
Step 1: (+ (/ 9 3) (* 4 (* (- 10 2) 3)))
Step 2: (+ 3 (* 4 (* (- 10 2) 3)))
Step 3: (+ 3 (* 4 (* 8 3)))
Step 4: (+ 3 (* 4 24))
Step 5: (+ 3 96)
Step 6: 99
(Numeric operations chosen because I guess not many know LISP here, and numeric operation is kinda alike in all languages, so people should understand it in any case)
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards

Last edited by liorean; 04-30-2003 at 03:17 AM..
liorean is offline   Reply With Quote
Old 04-29-2003, 09:54 PM   PM User | #6
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
Quote:
Originally posted by liorean
I guess not many know LIPS here
No I've never programmed anything with LIPS ... but I can play the piano with my NOSE
__________________
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark
brothercake is offline   Reply With Quote
Old 04-29-2003, 09:57 PM   PM User | #7
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enoughliorean will become famous soon enough
You've never programmed any humanoid robots, then?

(It's corrected now...)
__________________
liorean <[lio@wg]>
Articles: RegEx evolt wsabstract , Named Arguments
Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards
liorean is offline   Reply With Quote
Old 04-30-2003, 01:56 PM   PM User | #8
jalarie
Regular Coder

 
Join Date: Jun 2002
Location: Flint, Michigan, USA
Posts: 593
Thanks: 1
Thanked 19 Times in 19 Posts
jalarie is an unknown quantity at this point
I have a JavaScript editor/tester (no stepping though) on the "Samples of my work > Bookmarklet Editor" page at:

&nbsp;http://spruce.flint.umich.edu/~jalarie/
__________________
Visit my site at http://spruce.flint.umich.edu/~jalarie/.
jalarie is offline   Reply With Quote
Old 04-30-2003, 08:06 PM   PM User | #9
Tails
Regular Coder

 
Join Date: Nov 2002
Posts: 672
Thanks: 1
Thanked 1 Time in 1 Post
Tails is an unknown quantity at this point
Hmm, so there was such a thing. I remember once trying to find the microsoft script debugger and it didn't seem to exist. Maybe it wasn't even javascript. Microsoft.com is so disorganized when it comes to trying to find what you need.
Tails is offline   Reply With Quote
Old 04-30-2003, 08:21 PM   PM User | #10
beetle
Senior Coder

 
Join Date: Aug 2002
Posts: 3,467
Thanks: 0
Thanked 0 Times in 0 Posts
beetle has a little shameless behaviour in the past
go straight to msdn.microsoft.com -- a 2-3 keyword search usually gets you what you need.
__________________
My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
“Minds are like parachutes. They don't work unless they are open”
“Maturity is simply knowing when to not be immature”
beetle is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:15 AM.


Advertisement
Log in to turn off these ads.