You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if you could help me out. I'm hitting some problems setting breakpoints on Windows in my project. Everything is working great on Mac/Linux but the following code is causing issues when mapping source files with absolute paths/drive letters:
From sourceMaps.ts in SouceMap constructor
for (let i = 0; i < sm.sources.length; i++) {
sm.sources[i] = this.toUrl(sm.sources[i]);
}
I'm hitting "Unknown source file" issues as a result of finding no matches in DukDebugger.ts scanDir.
This is happening because of the "file:///" prefix added to source paths containing drive letters in the toUrl function. The below comparison fails as a result:
DukDebugger.ts:2121
if (this.normPath(Path.resolve(this._outDir, candidateFile)) === path)
In my case at DukDebuffer.ts:2121 the debugger shows:
Hi @harold-b !
I wonder if you could help me out. I'm hitting some problems setting breakpoints on Windows in my project. Everything is working great on Mac/Linux but the following code is causing issues when mapping source files with absolute paths/drive letters:
From sourceMaps.ts in SouceMap constructor
I'm hitting "Unknown source file" issues as a result of finding no matches in DukDebugger.ts
scanDir
.This is happening because of the "file:///" prefix added to source paths containing drive letters in the
toUrl
function. The below comparison fails as a result:DukDebugger.ts:2121
In my case at DukDebuffer.ts:2121 the debugger shows:
candidateFile="file:///d:/Development/Proj/Software/External/Libraries/blueprint/examples/GainPlugin/Source/jsui/src/Slider.js"
path="d:\Development\Proj\Software\External\Libraries\blueprint\examples\GainPlugin\Source\jsui\src\Slider.js"
Is this prefix to be expected here? Currently this comparison will always fail.
My webpack config uses the following source-map configuration:
In my
outDir
I have a single main.js and a single main.js.map file. Source paths in my map appear as below:"webpack:///D:/Development/Proj/Software/External/Libraries/blueprint/examples/GainPlugin/Source/jsui/src/Slider.js"
My workspaceFolder/root is at
D:/Development/Proj/Software/External/Libraries/blueprint/examples/GainPlugin/Source/jsui
Launch.json is as follows:
The text was updated successfully, but these errors were encountered: