#1327 A "Chrome Debug" session can now be started even when a chrome window is already open #1328
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Rationale
The "vscode-chrome-debug" debugger can either be instructed to start chrome from a specific path or it can try to locate chrome itself. See here: https://github.com/microsoft/vscode-chrome-debug/blob/master/src/chromeDebugAdapter.ts
If going for the first option the
runtimeExecutable
parameter must be specified. This is what wwd currently does and what causes #1327In contrast, here is a typical
launch.json
from VSCode:Instead of using the
runtimeExecutable
parameter, VSCode uses thetype
andlaunch
parameters. When thetype
andlaunch
parameters are used "vscode-chrome-debug" locates the chrome executable itself. This fixes #1327I am not sure why it fixes #1327, but it does.
Appendix
This only fixes "Chrome Debug" and not "Running Chrome Debug Instance". I suspect that "Running Chrome Debug Instance" can be fixed in the same way. After also fixing "Running Chrome Debug Instance" the class
ChromeExecutableTab
probably becomes obsolete. The methodfindChromeLocation
inChromeRunDAPDebugDelegate
can probably also be deleted.