Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.

Commit 9e4d826

Browse files
committed
Add note about webpack sourcemaps - #669
1 parent 3e40f0c commit 9e4d826

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ This message means that the extension can't attach to Chrome, because Chrome was
219219
* Ensure the code in Chrome matches the code in Code. Chrome may cache an old version.
220220
* If your breakpoints bind, but aren't hit, try refreshing the page. If you set a breakpoint in code that runs immediately when the page loads, you won't hit that breakpoint until you refresh the page.
221221
* File a bug in this extension's [GitHub repo](https://github.com/Microsoft/vscode-chrome-debug), including the debug adapter log file. Create the log file by setting the "trace" field in your launch config and reproducing the issue. It will print the path to the log file at the top of the Debug Console. You can drag this file into an issue comment to upload it to GitHub.
222+
* If you're using Webpack, we recommend using the `"devtool": "source-map"` option as the others produce lower-fidelity sourcemaps and you may have issues setting breakpoints.
222223

223224
### The `.scripts` command
224225
This feature is extremely useful for understanding how the extension maps files in your workspace to files running in Chrome. You can enter `.scripts` in the Debug Console to see a listing of all scripts loaded in the runtime, their sourcemap information, and how they are mapped to files on disk. The format is like this:

0 commit comments

Comments
 (0)