Interactive Javascript console (preferably integrated with Firebug)

本小妞迷上赌 提交于 2019-12-18 12:27:20

问题


I'm looking for a way to have an interactive JIT debugger, preferably integrated with Firebug.

I got the idea from PHPEd, which has an "Immediate" debug tab where you can just type in PHP code and modify objects on the fly. This makes debugging a breeze as you can re-assign variables multiple times, re-execute functions, etc without leaving the program.

Here's what I think would be superb: - set a breakpoint in Firebug - arrive to breakpoint - have an Execute JS tab where one could enter JS code, similar to what I described above

Does anything like this exist already?

TIA.


回答1:


You can already do this in Firebug. Just get to a break point, then go to the "console" tab, and type your commands into the command line at the bottom (where there's the ">>>").




回答2:


If I understand the question correctly, I think can do that already in firebug.

  • Set a breakpoint (or use the debugger keyword)
  • Click the console tab
  • the bottom line allows you to enter a javascript command.
  • if you need more space click the icon that looks like an upside down v in the bottom right part of the browser.

You might also like the JS execute extension.




回答3:


Actually, Firebug can do this and it's only a matter of a little investigation on their website to find out how to do this best :) Good luck!




回答4:


Agree with parents that Firebug is the best choice. Another option that requires a good deal of configuration would be Aptana. For folks using the Eclipse IDE, Aptana is a solid editor for Javascript work. The plus with Aptana is that it's tied more to a code editing environment.



来源:https://stackoverflow.com/questions/822071/interactive-javascript-console-preferably-integrated-with-firebug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!