Fix sourcemaps for 'attach' config
This commit is contained in:
Родитель
a7dab58a69
Коммит
bdede6b864
|
@ -13,6 +13,14 @@ export class SourceMapTransformer implements IDebugTransformer {
|
|||
private _requestSeqToSetBreakpointsArgs: Map<number, DebugProtocol.SetBreakpointsArguments>;
|
||||
|
||||
public launch(args: ILaunchRequestArgs): void {
|
||||
this.init(args);
|
||||
}
|
||||
|
||||
public attach(args: IAttachRequestArgs): void {
|
||||
this.init(args);
|
||||
}
|
||||
|
||||
private init(args: ILaunchRequestArgs | IAttachRequestArgs): void {
|
||||
if (args.sourceMaps) {
|
||||
this._sourceMaps = new SourceMaps(args.outDir);
|
||||
this._generatedCodeDirectory = args.outDir;
|
||||
|
|
|
@ -258,7 +258,7 @@ suite('WebKitDebugAdapter', () => {
|
|||
});
|
||||
|
||||
function attach(wkda: _WebKitDebugAdapter): Promise<void> {
|
||||
return wkda.attach({ address: 'localhost', 'port': 9222 });
|
||||
return wkda.attach({ address: 'localhost', port: 9222 });
|
||||
}
|
||||
|
||||
class DefaultMockWebKitConnection {
|
||||
|
|
|
@ -15,7 +15,9 @@
|
|||
"name": "attach to chrome",
|
||||
"type": "webkit",
|
||||
"port": 9222,
|
||||
"request": "attach"
|
||||
"request": "attach",
|
||||
"sourceMaps": true,
|
||||
"outDir": "out"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -12,6 +12,8 @@ interface ILaunchRequestArgs extends DebugProtocol.LaunchRequestArguments {
|
|||
interface IAttachRequestArgs extends DebugProtocol.AttachRequestArguments {
|
||||
port: number;
|
||||
address: string;
|
||||
sourceMaps?: boolean;
|
||||
outDir?: string;
|
||||
}
|
||||
|
||||
interface ISetBreakpointsArgs extends DebugProtocol.SetBreakpointsArguments {
|
||||
|
|
Загрузка…
Ссылка в новой задаче