Skip to content

Unverified Breakpoint in VSCode. DebugService: Error serving requestsError: FormatException: Unsupported URI form. #146795

@DanielJaramillo94

Description

@DanielJaramillo94

Steps to reproduce

I'm learning to use Flame and I have a little project setted up. Thing is I want to use the debbuger but I can't in my main PC but in the laptop I actually can.

I have 2 breakpoints:

  1. main.dart, line 5
  2. pixel_adventure.dart, line 5

The execution code stops in breakpoint 1, as expected, but it doesn't stop in breakpoint 2. When I do click "Step into" when I'm on breakpoint 1, the debug console prints the next error: DebugService: Error serving requestsError: FormatException: Unsupported URI form: C:/Users/daniJ/AppData/Local/Pub/Cache/hosted/pub.dev/flame-1.17.0/lib/src/components/sprite_animation_group_component.dart

The breakpoint 2 is marked as "Unverified endpoint" everytime, as if the execution code wouldn't be able to reach it, but the project is working as expected, so the code is being reached.

Expected results

I expect the stop execution stops on breakpoints 1 and 2 when running the project in debug mode

Actual results

The execution stops only in breakpoint 1

Code sample

EDITED example to make it shorter

Code sample Lib folder in project structure (only 3 files):

lib (folder)
main.dart
pixel_adventure.dart
components (folder)

player.dart

main.dart

import 'package:flutter/material.dart';
import 'package:pixel_adventure/pixel_adventure.dart';

void main() async {
  final game = PixelAdventure();

  runApp(
    Container(),
  );
}

pixel_adventure.dart

import 'package:pixel_adventure/components/player.dart';

class PixelAdventure {
  PixelAdventure() {
    final player = Player();
  }
}

player.dart

import 'package:flame/components.dart';
import 'package:flutter/services.dart';
import 'package:pixel_adventure/pixel_adventure.dart';

class Player extends SpriteAnimationGroupComponent with KeyboardHandler {
  @override
  bool onKeyEvent(KeyEvent event, Set<LogicalKeyboardKey> keysPressed) {
    return super.onKeyEvent(event, keysPressed);
  }
}

Screenshots or Video

No response

Logs

Logs
DebugService: Error serving requestsError: FormatException: Unsupported URI form: C:/Users/daniJ/AppData/Local/Pub/Cache/hosted/pub.dev/flame-1.17.0/lib/src/components/sprite_animation_group_component.dart

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.19.5, on Microsoft Windows [Version 10.0.22631.2861], locale es-CO)
    • Flutter version 3.19.5 on channel stable at C:\Users\daniJ\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (3 weeks ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at C:\Users\daniJ\AppData\Local\Android\sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2023.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[√] VS Code (version 1.88.1)
    • VS Code at C:\Users\daniJ\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.86.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.2861]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 123.0.6312.123
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 123.0.2420.97

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions