mathworks / mathworks/MATLAB-extension-for-vscode

Debugging only working when startDebuggerAutomatically is true

Open
#223 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
VS Code drops into debugging mode only when the setting "startDebuggerAutomatically" is true.

To Reproduce
Steps to reproduce the behavior:

  1. set startDebuggerAutomatically false

  2. create matlab file and add a breakpoint

  3. press "Run and Debug"

  4. file is not debugged, no stopping at breakpoint

  5. set startDebuggerAutomatically true

  6. run the file

  7. debugging works

Expected behavior
Debugging should also work when startDebuggerAutomatically is false.

Useful Information

  • OS Version: Windows
  • VS Code Version: 1.97.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in VS Code with startDebuggerAutomatically set to false, a MATLAB file, and a breakpoint, then compare the Run and Debug flow with the setting enabled. Trace how the extension handles the setting and the Run and Debug entry point; done means debugging stops at the breakpoint in both configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.