Skip to content

Commit 305ff6e

Browse files
committed
Resolve debugging issue when connection timing is set to "never"
1 parent dcb1914 commit 305ff6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/debug/MatlabDebugger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default class MatlabDebugger {
113113
session.name = 'MATLAB';
114114

115115
const isInvalidToStartSession = (await vscode.workspace.getConfiguration('MATLAB').get('matlabConnectionTiming')) === 'never'
116-
if (isInvalidToStartSession) {
116+
if (isInvalidToStartSession && this._mvm.getMatlabState() === MatlabState.DISCONNECTED) {
117117
void vscode.debug.stopDebugging(session);
118118
return;
119119
}

0 commit comments

Comments
 (0)