Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

In my case I had to define the sourceMapPathOverrides value like this:

File launch.json (contained in .vscode folder):

 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}```
My source is in `${workspaceFolder}/project/app`.
{
 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}

My source is in ${workspaceFolder}/project/app.

In my case I had to define the sourceMapPathOverrides value like this:

File launch.json (contained in .vscode folder):

 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}```
My source is in `${workspaceFolder}/project/app`.

In my case I had to define the sourceMapPathOverrides value like this:

File launch.json (contained in .vscode folder):

{
 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}

My source is in ${workspaceFolder}/project/app.

added 30 characters in body
Source Link
Matt
  • 27.4k
  • 19
  • 131
  • 202

In my case I had to define the sourceMapPathOverrides value like this:

File launch.json (contained in .vscode folder):

 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}```
My source is in `${workspaceFolder}/project/app`.

In my case I had to define the sourceMapPathOverrides value like this:

 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}```
My source is in `${workspaceFolder}/project/app`.

In my case I had to define the sourceMapPathOverrides value like this:

File launch.json (contained in .vscode folder):

 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}```
My source is in `${workspaceFolder}/project/app`.
Source Link
CodeChimp
  • 8.2k
  • 6
  • 45
  • 80

In my case I had to define the sourceMapPathOverrides value like this:

 // Use IntelliSense to learn about possible attributes.
 // Hover to view descriptions of existing attributes.
 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 "version": "0.2.0",
 "configurations": [
 {
 "type": "chrome",
 "request": "launch",
 "name": "Launch Chrome against localhost",
 "url": "http://localhost:3000",
 "webRoot": "${workspaceFolder}",
 "sourceMaps": true,
 "smartStep": true,
 "internalConsoleOptions": "openOnSessionStart",
 "sourceMapPathOverrides": {
 "webpack:///*": "${webRoot}/project/app/*"
 }
 }
 ]
}```
My source is in `${workspaceFolder}/project/app`.
lang-js

AltStyle によって変換されたページ (->オリジナル) /