sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

launch.json URL does not work for Local Workbench debug configuration

Open TedPattison opened this issue 8 years ago • 4 comments

Category

  • [ ] Question
  • [ ] Typo
  • [X ] Bug
  • [ ] Additional article idea

I found what seems like a bug when running gulp serve with the --nobrowser switch and then launching the Local Workbench debug configuration which is defined in a new project inside launch.json. When I click the green arrow button to launch the Local workbench debu configuration, the browser appears with a blank page. If I update the URL in the Local workbench debug configuration of launch.json to the initialPage value I found in serve.json, then launching a debug session works correctly.

"name": "Local workbench", "url": "https://localhost:5432/workbench",

It seems like hitting that initial page at https://localhost:5432/workbench is essential to hit first to make the local workbench work. But when you run gulp serve with the --nobrowser switch and then try to launch the Local Workbench it fails.

TedPattison avatar Sep 02 '18 18:09 TedPattison

thx @TedPattison for reporting... now just to prioritize things... this seems to be a training topic on saying, please don't add --nobrowser on the call, unless mistaking something. Sure that will then open a new tab, but that's it. Am I missing something.

VesaJuvonen avatar Sep 13 '18 16:09 VesaJuvonen

It also seems like there is one more issue. When you start project with the gulp serve command without using the --nobrowser parameter, it starts up fine and runs inside the local workbench. But after that then when you try to debug by setting breakpoint and pressing the green arrow on the debug tab to begin a local debug session, the Visual Studio Code IDE is not able to break at a breakpoint. This is not a big issue but not as smooth to single step through code as it was with API v1.4.

TedPattison avatar Sep 13 '18 18:09 TedPattison

In a new projected created with 1.6, I can fix the problem by updating launch.json by switching the url of the Local workbench configuration from...

"url": "https://localhost:4321/temp/workbench.html",

to

"url": "https://localhost:5432/workbench/",

TedPattison avatar Sep 15 '18 17:09 TedPattison

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 26 '20 18:01 msft-github-bot