Commit Graph
76 Commits
Author SHA1 Message Date
Benjamin Pasero 234b127eff debt - apply more linting fixes (#274677) 2025-11-03 06:34:57 +00:00
Benjamin PaseroandCopilot 08b8ea2f38 debt - reduce more any types (#273358)
* debt - reduce more `any` types

* Update src/vs/workbench/api/browser/mainThreadNotebook.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/vs/workbench/api/browser/mainThreadDebugService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-26 04:50:40 +00:00
Connor Peet 0ff9bfdb13 debug: fix repl completions and disposable leak (#241776) 2025-02-25 00:04:45 +01:00
oltolm e7f022a392 debug: ignore error when stopping a process (#236009)
ERR Invalid debug adapter: Error: Invalid debug adapter
2024-12-13 17:10:50 +00:00
Rob Lourens c5d0bb8956 Fix error from telemetry (#227520)
Fix #202002
2024-09-04 06:40:23 +02:00
6b924c5152 ESM merge to main (#227184)
Co-authored-by: Johannes Rieken <jrieken@microsoft.com>
Co-authored-by: Alexandru Dima <alexdima@microsoft.com>
2024-08-30 10:31:46 +02:00
Connor Peet e2bf3453f5 debug: correlate debug sessions to testing, delegate restarts (#214537)
Implements #214486
2024-06-07 06:15:59 +02:00
OccasionalDebugger b0c5f83a75 Pass full function breakpoint options from plugin (#211895)
* Pass full function breakpoint options from plugin

* Send newly added function breakpoints to DA
2024-05-08 10:50:47 -07:00
Connor Peet e50231341b debug/testing: clean up most explicit type casts (#212119)
For #211878
2024-05-06 12:38:44 -07:00
Connor Peet bd3b1fe70a debug: reattach listeners when existing session is reattached (#209687)
Fixes #203472
2024-04-05 14:09:33 -07:00
Connor Peet 5cbe2b9646 debug: tighten down debugFocus API proposal (#207006)
* debug: tighten down debugFocus API proposal

Some bug fixes and reworking to align better with our APIs

* fix getter error
2024-03-06 22:58:09 +01:00
Connor Peet d73fa8b14a debug: support data breakpoints by address (#206855)
This creates a new "Add Data Breakpoint at Address" action in the
breakpoints view when a debugger that supports the capability is
available. It prompts the user to enter their address in a quickpick,
and then allows them to choose appropriate data access settings.

The editor side of https://github.com/microsoft/debug-adapter-protocol/issues/455
2024-03-04 20:08:00 -08:00
Connor Peet 3ce7ccff41 debug: initial support of breakpoint modes (#205251)
This supports breakpoint modes on exception, instruction, and source
breakpoints. It doesn't yet do data breakpoints since I was having
trouble figuring out a good user flow for that. You can test this on the
`connor4312/breakpoint-modes` branch of mock-debug, which I'll merge in
after the next DAP release.

![](https://memes.peet.io/img/24-02-68cd0222-8ef5-4d39-aa51-81ba5b8c2405.png)
2024-02-15 06:36:53 +01:00
Connor Peet a2c91f1f28 debug: update visualizers tree proposal, some initial implementation (#204877) 2024-02-13 18:22:06 +01:00
Matt Bierner 31fbc3dc94 Remove extra not null assertions (#202201)
* Remove extra not null assertions

With https://github.com/microsoft/TypeScript/pull/56908, TS should better preserve type refinements. To help test this out, I made a quick pass through our code to remove type assertions that are no longer needed

Most of these are not impacted by https://github.com/microsoft/TypeScript/pull/56908 but removing them helps TS test changes like this

Not adding an eslint rule for now as it requires whole program intellisense, which is too slow for commit hooks

* Fix merge
2024-01-30 15:43:09 -08:00
Connor Peet 76e1ccf4c0 debug: initial visualization extension points (#202775)
wip
2024-01-18 15:31:44 -08:00
Connor Peet 2d50c20ad2 debug: fix error restarting debug session (#200203)
Fixes #196950

Emit more information from the debug service about the type of
termination happening, and whether a restart is expected. Keep the
session listeners for sessions around if a restart is expected. Additionally:

- inline chat decorations did not track restarted sessions
- there was a leak where we retained listeners for every launched debug session on the DebugService
2023-12-06 16:14:13 -08:00
Johannes 2a85f13d74 undo removeSession part 2023-09-05 20:08:43 +02:00
Johannes 4862c21259 avoid the global listener trap 2023-08-31 17:13:22 +02:00
Johannes 170f7cd76e fix some, but not all leaks wrt DebugSession 2023-08-31 16:46:25 +02:00
Connor Peet ccbcba53e6 debug: shut down debug sessions if an extension host goes away (#187169)
Fixes #184552
2023-07-06 20:04:59 +02:00
Rob Lourens 448d14e907 Make breakpoint data available in EH immediately, not after a call to debug API (#186796)
Fix #169699
2023-06-30 15:04:59 -07:00
Michael BloutandRob Lourens 2de3b04eaf Add debug API for call stack selection changes (63943) (#179132)
* feat: Initial pass at Debug Focus, listener for thread or stack frame
selection (#63943)

Add debug.onDidChangeDebugFocus. May provide ids for session, thread,
and stackFrame, as appropriate.

Fixes: #63943 api should provide thread/stack frame id (paraphrasing)

* chore: small comment tweaks in proposal

* fix: bad copy/paste in proposed. moved types out of 'debug' namespace

* fix: separate 'debugFocus' into thread and stackFrame specific
listeners, and create separate contexts for each

* fix: Revert prev change, switch to single api with union type

This reverts commit c308bc3a90.

* fix: rename accessor from 'focus' to 'stackFrameFocus'

* fix: review comments; remove unused type, imrpove comments

* fixL review comments, type change:  sessionID property cannot be undefined

* Remove comments

---------

Co-authored-by: Rob Lourens <roblourens@gmail.com>
2023-04-17 18:42:53 +00:00
Connor Peet edde095868 debug: show output test when present with variablesReference (#172880)
Previously, if a DAP output event contained a variablesReference, we
would entirely ignore the `output` text in favor of shows its variables.
However, output can be richer than variable data: namely, it can show
ANSI sequences which would be inappropriate to format in
a variable `value`.

In this PR, if an output event has a single variable in its
`variablesReference` and output text, we show the output text instead
of the variable value. (Maybe we should also log output as plain text,
though this could be a confusing experience. I don't know of any DA's
that actually emit >1 variable in their output.)

For #172868
For #171732

(will need adoption in js-debug to actually fix those)
2023-02-01 09:57:41 -08:00
Rob Lourens cf47b76c63 Finalize notebookDebugOptions API (#163316)
* Finalize notebookDebugOptions API
Fix #147264

* Backcompat for the option from vscode-jupyter

* Undo comment

* Fix build
2022-10-11 20:25:51 -07:00
Andrea Mah 5864b1f51a VS Code pre-release does not reload code on restart of the debugger (#157948)
* VS Code pre-release does not reload code on restart of the debugger
Fixes #157655
2022-08-15 09:46:59 -07:00
Andrea Mah 368400c190 Check save settings before debug restart (#154206)
* Fix bug: Files automatically saved when restarting debugger, even though it is set not to
Fixes #149885
2022-07-07 18:01:33 +00:00
Matt Bierner f17b33faf2 Use .?method() in more places (#152112)
Switches simple patterns like:

```ts
if (some.thing) {
    some.thing.method();
}
```

to:

```ts
some.thing?.method()
```

This is more concise and avoids having to repeat the `some.thing` part
2022-06-15 16:28:31 +00:00
Johannes 0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Rob Lourens 89048b8b8f Get rid of handled errors logged from IPC
Fix #144559
2022-03-15 17:30:53 -07:00
Rob Lourens 14290dc9d4 Remove import from workbench/contrib/debug/ to workbench/api
See #141921
2022-02-01 18:36:07 -08:00
Alex Dima e2541e9263 Move extHostCustomers.ts to workbench/services (#141003) 2022-01-31 19:57:21 +01:00
Andre Weinand 7f5007c9a4 make stopDebugging use disconnect for "attach" sessions; fixes #140560 2022-01-12 17:46:30 +01:00
Rob Lourens bad6e9309b Don't override saveBeforeStart default value
See microsoft/vscode-jupyter#6898
2021-09-02 13:01:06 -07:00
Rob Lourens 58c83f27fa 💄 2021-09-02 11:05:13 -07:00
Rob Lourens cdc8e53cf3 Add DebugSessionOptions suppressSaveBeforeStart
See microsoft/vscode-jupyter#6898
2021-09-02 11:05:13 -07:00
Andre Weinand 4f5f5de28f Merge pull request #125737 from xisui-MSFT/dev/xisui/disassembly
Disassembly view
2021-07-22 11:28:41 +02:00
Andre Weinand 67b4efe22c new DebugSessionOption 'lifecycleManagedByParent'; fixes #128058 2021-07-20 17:24:05 +02:00
Rob Lourens 247e62d79a Add flag for "simple" debug UI (#128801)
* Implement simple debug UI mode

* Don't show debug viewlet on step

* Move flag to proposed

* Pass around full debugUI options object

* Implement isSimpleUI in mock
2021-07-19 17:49:17 -07:00
Felix Huang a83ef3a31c First Compile 2021-07-07 12:37:24 -07:00
Connor Peet e657d42281 debug: expose parent session on DebugSessions
For https://github.com/microsoft/vscode/issues/123403
2021-05-18 11:56:09 -07:00
Yanis cf7e6f31f9 Support for DataBreakpointAccessType condition #117835 2021-03-17 18:05:18 +01:00
Connor Peet 3088c27fbd debug: mark terminal as free when the associated debug session ends (#115573) 2021-02-02 08:27:37 -08:00
isidor 8c3f5dd3fa Support to start multiple debug sessions from a single launch config
#110226
2021-01-07 19:57:22 +01:00
isidor 081632d225 debug: remove legacy adapterExecutableCommand 2020-11-06 14:59:00 +01:00
isidor 0cc93f5c48 debug: split ConfigurationManager into ConfigurationManager and AdapterManager 2020-11-06 14:34:54 +01:00
isidor 235bae66cb debug: remove debugAddBreakopint telemetry event, no longer needed 2020-09-22 11:58:18 +02:00
Andre Weinand c233bf87bc add API to access DAP breakpoints; see #99716 2020-08-17 12:30:02 +02:00
Connor Peet 5b5bb81e2c fix: inherit the compound root for all children of debug sessions
Fixes https://github.com/microsoft/vscode/issues/103705
2020-07-31 12:31:44 -07:00
Andre Weinand b572b43606 remove not used proposed API; see #101883 2020-07-22 09:44:03 +02:00