[Useful Info] Sublime Text - Debug на JavaScript директно в Sublime Text с помоща на Web Inspector
Ако сте фенове на Sublime Text 2 или Sublime Text 3 можете да си инсталирате Web Inspector с помоща на, който да дебъгвате Javascript програми директно в Sublime Text… Звучи яко нали :)
http://sokolovstas.github.io/SublimeWebInspector/
https://www.youtube.com/watch?v=LaH_43N34Jg
Installation
Execute the following command in your Sublime Packages folder:
- Sublime 2
git clone git://github.com/sokolovstas/SublimeWebInspector.git Web\ Inspector
- Sublime 3
git clone git://github.com/sokolovstas/SublimeWebInspector.git -b ST3 Web\ Inspector
Feature
- Breakpoints for project stored in user settings with absolute paths.
- Console.
- Debugger steps and breakpoints.
- Stack trace.
- You can see object properties and values in console and stack trace.
Commands
Command for controlling debugger
- swi_debug_resume: Resume from pause
- swi_debug_step_into: Step into debugger
- swi_debug_step_out: Step out debugger
- swi_debug_step_over: Step over debugger
- swi_debug_evaluate: Evaluate selection (if paused on call frame)
Breakpoints
- swi_debug_breakpoint: Add remove breakpoints
Page
- swi_debug_reload: Reload connected page
Start-stop
- swi_debug_start: Start debugger
- swi_debug_stop: Stop debugger
Utils
- swi_debug_start_chrome: Start Google Chrome
- swi_show_file_mapping: Show mapping local file to url