Skip to content

Debugger: DAP types incompatible with some dap servers #37080

@DeityLamb

Description

@DeityLamb

Summary

DAP types incompatible with some DAP servers

Description

Some DAP Servers (Hello Java again) put -1 into line in StackFrame when source is missing, instead of 0, while Zed expects line to be u64. This breaks frame capturing.
https://github.com/zed-industries/dap-types/blob/master/dap-types/src/types.rs#L2215

  1. Open Spring Boot project
  2. Start debugging
  3. Add break points to route
  4. Make some requests

Expected Behavior:
Debugging works in all cases
Actual Behavior:
It breaks when frame line is -1

I tried mapping line to 0 if it’s -1 for testing, and it worked.
DeityLamb/dap-types@d8419e3

Video
2025-08-28_12-37-27.mp4

Related issues zed-extensions/java#74

Zed Version and System Specs

Zed: v0.200.5 (Zed)
OS: Linux Wayland void unknown
Memory: 14.9 GiB
Architecture: x86_64
GPU: AMD Radeon Graphics (RADV REMBRANDT) || radv || Mesa 25.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions