Skip to content

Support script-less debugging sessions (and more)#345

Open
JakeShirley wants to merge 3 commits intomainfrom
jake/updates
Open

Support script-less debugging sessions (and more)#345
JakeShirley wants to merge 3 commits intomainfrom
jake/updates

Conversation

@JakeShirley
Copy link
Collaborator

@JakeShirley JakeShirley commented Feb 5, 2026

Support debugger connections without active script packs

Summary

This PR updates the Minecraft Debugger to gracefully handle connecting to a Minecraft instance that has no active script packs, adds TypeScript file support to the debugger languages list, and applies formatting fixes.

Changes

Bug Fixes

  • Support connections with no active script packs — Previously, the debugger would terminate with an error ("No Minecraft Add-Ons found") when connecting to a target with no scripting behavior packs. Now it shows a warning notification and continues in a diagnostics-only mode, allowing users to still use diagnostic features without scripts loaded. The passcode prompt is also moved earlier in the flow so it's requested before checking for plugins.
    • NOTE: This can behave a little odd without new Minecraft client changes, but it's not significant to warrant bumping the protocol version IMO.
  • Skip source file path checks when no target module is setcheckSourceFilePaths() is now only called when _targetModuleUuid is defined, avoiding misleading source map warnings in diagnostics-only mode.
  • Add TypeScript to supported debugger languages — The languages list in the debugger contribution now includes "typescript" alongside "javascript", enabling breakpoints and debug features in .ts files.

Code Quality

  • Format session.ts — Applied consistent trailing comma formatting throughout the file to match project prettier configuration.

Files Changed

File Description
package.json Added "typescript" to debugger supported languages
src/session.ts Diagnostics-only mode for no-script connections; formatting cleanup

Testing

  • Verify the debugger can connect to a Minecraft instance with no script packs and shows the diagnostics-only warning.
  • Verify breakpoints and debugging still work in .ts files.
  • Verify existing debugger attach workflow with script packs is unaffected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants