BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io
https://discord.gg/2d2xUThp
Apache License 2.0
12.16k stars 755 forks source link

VisualStudio Remote Debugger (weinre) #470

Open rudzikdawid opened 9 years ago

rudzikdawid commented 9 years ago

I use this solution in VisualStudio: https://github.com/peterblazejewicz/visual-studio-web-developer/blob/master/using-browsersync-as-a-tool-in-visual-studio.md

my "Arguments:"

/C browser-sync start --files "Content/**/*.css, Views/**/*.cshtml" --proxy localhost:52795 --logLevel debug --host 192.168.48.183

dev-ip:

[ '192.168.9.190', '192.168.48.183', '192.168.56.1' ]

Debug:

[BS] [debug] -> Starting Step: Finding an empty port
[BS] [debug] Found a free port: 3000
[BS] [debug] Setting Option: port - 3000
[BS] [debug] +  Step Complete: Finding an empty port
[BS] [debug] -> Starting Step: Checking online status
[BS] [debug] Resolved www.google.com, setting online: true
[BS] [debug] Setting Option: online - true
[BS] [debug] +  Step Complete: Checking online status
[BS] [debug] -> Starting Step: Set Urls and other options that rely on port/online status
[BS] [debug] Setting multiple Options
[BS] [debug] +  Step Complete: Set Urls and other options that rely on port/online status
[BS] [debug] -> Starting Step: Setting Internal Events
[BS] [debug] +  Step Complete: Setting Internal Events
[BS] [debug] -> Starting Step: Setting file watchers
[BS] [debug] +  Step Complete: Setting file watchers
[BS] [debug] -> Starting Step: Merging middlewares from core + plugins
[BS] [debug] Setting Option: middleware - List []
[BS] [debug] +  Step Complete: Merging middlewares from core + plugins
[BS] [debug] -> Starting Step: Starting the Server
[BS] [debug] Proxy running, proxing: http://localhost:52795
[BS] [debug] Running mode: PROXY
[BS] [debug] +  Step Complete: Starting the Server
[BS] [debug] -> Starting Step: Starting the HTTPS Tunnel
[BS] [debug] +  Step Complete: Starting the HTTPS Tunnel
[BS] [debug] -> Starting Step: Starting the web-socket server
[BS] [debug] Setting Option: clientEvents - List [ "scroll", "input:text", "input:toggles", "form:submit", "form:reset", "click" ]
[BS] [debug] +  Step Complete: Starting the web-socket server
[BS] [debug] -> Starting Step: Starting the UI
[BS] [UI] Starting Step: Setting default plugins
[BS] [UI] Step Complete: Setting default plugins
[BS] [UI] Starting Step: Finding a free port
[BS] [UI] Step Complete: Finding a free port
[BS] [UI] Starting Step: Setting options also relevant to UI from BS
[BS] [UI] Step Complete: Setting options also relevant to UI from BS
[BS] [UI] Starting Step: Setting available URLS for UI
[BS] [debug] Getting option via path: urls
[BS] [UI] Step Complete: Setting available URLS for UI
[BS] [UI] Starting Step: Starting the Control Panel Server
[BS] [UI] Using port 3001
[BS] [UI] Step Complete: Starting the Control Panel Server
[BS] [UI] Starting Step: Add element events
[BS] [UI] Step Complete: Add element events
[BS] [UI] Starting Step: Registering default plugins
[BS] [debug] Getting option via path: urls,external
[BS] [UI] Step Complete: Registering default plugins
[BS] [UI] Starting Step: Add options setting event
[BS] [UI] Step Complete: Add options setting event
[BS] [debug] +  Step Complete: Starting the UI
[BS] [debug] -> Starting Step: Merge UI settings
[BS] [debug] Setting Option: urls - Map { local: "http://localhost:3000", external: "http://192.168.48.183:3000", ui: "http://localhost:3001", ui-external: "http://192.168.48.183:3001" }
[BS] [debug] +  Step Complete: Merge UI settings
[BS] [debug] -> Starting Step: Init user plugins
[BS] [debug] Setting Option: userPlugins - 
[BS] [debug] +  Step Complete: Init user plugins
[BS] Proxying: http://localhost:52795
[BS] Access URLs:
 ---------------------------------------
       Local: http://localhost:3000
    External: http://192.168.48.183:3000
 ---------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.48.183:3001
 ---------------------------------------
[BS] Watching files...
[BS] Browser Connected: Chrome, version: 40.0.2214.111
[BS] [debug] Getting option via path: urls,external
[BS] [UI] [weinre]: starting server at http://192.168.48.183:8080
[BS] Browser Connected: IEMobile, version: 9.0
[BS] Browser Connected: IEMobile, version: 9.0
[BS] [UI] Setting Many options...
[BS] [debug] Setting multiple Options
[BS] [debug] Getting option via path: urls,external
[BS] [UI] [weinre]: starting server at http://192.168.48.183:8080
[BS] Browser Connected: IEMobile, version: 9.0
[BS] [debug] Getting option via path: urls,external
[BS] [UI] [weinre]: starting server at http://192.168.48.183:8080

On default 192.168.9.190:3000 project works but only on desktop, i can't open 192.168.9.190:3000 from mobile devices connected to the same wifi network.

192.168.48.183:3000 I can open project from other devices but Remote Debugger (weinre) doesn't see this devices. It's weird because in debug log i see:

[BS] Browser Connected: IEMobile, version: 9.0

When i go to: 192.168.48.183:8080/client/#browsersync

Tagets: none
Clients: 192.168.48.183 [channel: c-8 id: browsersync]

Do You have any idea how fix it?

b4z81 commented 8 years ago

try this solution #523