-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respond to ptvsd changes to get debugging cells to work #3353
Comments
Click for details to create/edit diagramInstructions for editing diagram:
|
Currently the PVSC Debugger launches user code (in a python process), this needs to be changed ( Here's an overview of the solution and suggested changes:
protected launchRequest(response: DebugProtocol.LaunchResponse, args: LaunchRequestArguments): void {
const fs = this.serviceContainer.get<IFileSystem>(IFileSystem);
if ((typeof args.module !== 'string' || args.module.length === 0) && args.program && !fs.fileExistsSync(args.program)) {
return this.sendErrorResponse(response, { format: `File does not exist. "${args.program}"`, id: 1 }, undefined, undefined, ErrorDestination.User);
}
this.launchPTVSD(args)
.then(() => this.waitForPTVSDToConnect(args))
.then(() => this.emit('debugger_launched'))
.catch(ex => {
const message = this.getUserFriendlyLaunchErrorMessage(args, ex) || 'Debug Error';
this.sendErrorResponse(response, { format: message, id: 1 }, undefined, undefined, ErrorDestination.User);
});
}
private async launchPTVSD(args: LaunchRequestArguments) {
const launcher = CreateLaunchDebugClient(args, this, this.supportsRunInTerminalRequest);
this.debugServer = launcher.CreateDebugServer(this.serviceContainer);
const serverInfo = await this.debugServer!.Start();
return launcher.LaunchApplicationToDebug(serverInfo);
} Changes:
Notes & Warning:
|
We are looking for an MVD (Minimum viable demo) by July 8th. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Essentially this is:
The text was updated successfully, but these errors were encountered: