Skip to content

Commit a15cf18

Browse files
karthiknadigKartik Raj
andauthored
Update debugpy branch (microsoft#10289)
* Point to debugpy in the core extension (microsoft#10178) * Rename gulp task to install new debugpy * Fix install_ptvsd.py file and its references * Update yaml files * Make sure the paths in factory.ts point to debugpy when using DebugAdapterExectable * Fix tests * Correct install debugger wheels * Rename ptvsd methods to generic debugger name * Updated child process hook to support 'debugpy_attach' request * News entry * Format gulpfile.js * Use generic debugger name * Update method getRemoteDebuggerArgs() and add tests * Rename new_debugpy to debugpy * Oops * Update datascience bits to debugpy. * Cleanup * Ensure mock Jupyter Manager has a debupy cell Co-authored-by: Kartik Raj <[email protected]>
1 parent 47a9a18 commit a15cf18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/datascience/mockJupyterManager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ export class MockJupyterManager implements IJupyterSessionManager {
144144
this.addCell(CodeSnippits.ConfigSvg);
145145
this.addCell(CodeSnippits.ConfigPng);
146146
this.addCell(`import sys\r\nsys.path.append('undefined')\r\nsys.path`);
147-
this.addCell(`import ptvsd\r\nptvsd.enable_attach(('localhost', 0))`);
147+
this.addCell(`import ptvsd;ptvsd.enable_attach(('localhost', 0))`);
148+
this.addCell(`import debugpy;debugpy.listen(('localhost', 0))`);
148149
this.addCell("matplotlib.style.use('dark_background')");
149150
this.addCell(`matplotlib.rcParams.update(${Identifiers.MatplotLibDefaultParams})`);
150151
this.addCell(`%cd "${path.join(EXTENSION_ROOT_DIR, 'src', 'test', 'datascience')}"`);

0 commit comments

Comments
 (0)