Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post

    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?

  • #2
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    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.

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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”

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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)
    Last edited by liorean; 04-30-2003 at 03:17 AM.
    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

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #7
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    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

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    617
    Thanks
    1
    Thanked 20 Times in 20 Posts
    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/

  • #9
    Regular Coder
    Join Date
    Nov 2002
    Posts
    672
    Thanks
    1
    Thanked 1 Time in 1 Post
    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.

  • #10
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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”


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •