News for hackers. Stuff that matters.
Re:Show HN: A JavaScript debugger (press Go to debug bubble ... by zubairq on Wednesday November 21, 2018 @11:14AM (#18503701)
This is a simple app which can be used to build and debug small Javascript apps. Ask me any questions that you may have
Re:Show HN: A JavaScript debugger (press Go to debug bubble ... by divby0 on Thursday November 22, 2018 @02:29AM (#18508465)
This is a very cool app. how did you implement the `steps`. i meant how exactly the state is saved for the entire program?
Re:Show HN: A JavaScript debugger (press Go to debug bubble ... by zubairq on Thursday November 22, 2018 @03:00AM (#18508564)
Thanks. To implement the steps I take the Javascript source code, then I use Esprima to parse the code and insert Javascript lines to trace the variable values:

http://esprima.org/

The code is open source and available on Github too:

https://github.com/zubairq/appshare