sokolovstas / SublimeWebInspector

Web Inspector allow you debug Javascript right in the editor
http://sokolovstas.github.com/SublimeWebInspector
MIT License
2.35k stars 92 forks source link

Sublime Web Inspector debug mode not starting #77

Closed slifin closed 10 years ago

slifin commented 10 years ago

So far I have edited my user settings to this:

{
    // Path to google chrome
    "chrome_path": {
        "osx": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
        "windows": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
        "windows_x64": "C:\\Users\\slifin\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe",
        "linux": "/usr/bin/google-chrome"
    },
    // Chrome profile
    "chrome_profile": "Default",
    // Chrome remote port
    "chrome_remote_port": "9222",
    "breakpoint_scope": "swi.breakpoint",
    "current_line_scope": "swi.current",
    "interactive_scope": "mcol_0088CCFF.settings",
    // Layout for stack
    "stack_layout": {
        "cols": [0.0, 0.6, 1.0],
        "rows": [0.0, 0.7, 1.0],
        "cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
    },
    // Layout for console
    "console_layout": {
        "cols": [0.0, 0.6, 1.0],
        "rows": [0.0, 0.7, 1.0],
        "cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
    },
    // Reload page on start
    "reload_on_start": false,
    // Reload page on save
    "reload_on_save": true,
    // Reload timeout
    "reload_timeout": 0,
    // Override User Agent
    "user_agent": "",
    // Set script source in live mode
    "set_script_source": false,
    // Open stack on click in new tab
    "open_stack_current_in_new_tab": false,
    // Pause on exception ("all", "none", "uncaught")
    "pause_on_exceptions": "uncaught",
    // Plugin debug mode
    "debug_mode": false,
    // Breakpoints
    "breaks": {}
}

(default settings were not present on install I had to copy these in from elsewhere)

note I have changed the chrome location for 64 bit windows, chrome does not exist in program files for me it exists in %appData% I then press the key combination (ctrl + shift + r) inside sublime text and it says

"start google chrome with remote debug port 9222" I press enter google chrome opens up I then navigate to my local project http://localhost/ and give focus back to sublime I then press ctrl+shift+r and all it does is say "start google chrome with remote debug port 9222" there's no debugging options

What am I doing wrong?

Chrome version: Version 38.0.2125.111 m Sublime version: ST3 dev build 3066 SublimeWebInspector: installed from package manager at time of writing

sokolovstas commented 10 years ago

After running chrome try open http://127.0.0.1:9222/json in browser. You should see json with opened chrome tabs. If it won't open maybe something wrong with your firewall settings.

slifin commented 10 years ago

Ah ok, http://127.0.0.1:9222/json was not available to me in stable chrome but it was in canary chrome I think I have it working now, thank you