Skip to content

Commit

Permalink
Resolve debugging issue when connection timing is set to "never"
Browse files Browse the repository at this point in the history
  • Loading branch information
dklilley committed Dec 18, 2024
1 parent dcb1914 commit 305ff6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug/MatlabDebugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class MatlabDebugger {
session.name = 'MATLAB';

const isInvalidToStartSession = (await vscode.workspace.getConfiguration('MATLAB').get('matlabConnectionTiming')) === 'never'
if (isInvalidToStartSession) {
if (isInvalidToStartSession && this._mvm.getMatlabState() === MatlabState.DISCONNECTED) {
void vscode.debug.stopDebugging(session);
return;
}
Expand Down

0 comments on commit 305ff6e

Please sign in to comment.