Git Product home page Git Product logo

Comments (5)

psstoyanov avatar psstoyanov commented on August 15, 2024 1

Checking DEBUGGING.md.

@HidenoriMatsubayashi , please correct me if I'm wrong.
For the Building with debug mode section - when building the embedder with -DCMAKE_BUILD_TYPE=Debug this would generate the debug symbols for the embedder itself, right? It won't have anything to do with the Flutter app build type. Probably it would be better to separate this section.

Note:
To double-check my understanding, I've already tried and I was able to open the Dart debugger when the embedder has been built without specifying the debug flag. Debugging the Flutter app went as normal.
On the other hand, inserting break points inside the embedder itself or analysing an unexpected behaviour, can produce more information through gdb / lldb if the embedder is built with DCMAKE_BUILD_TYPE.

For debugging the Flutter app and the Command line, maybe it will be good to add the note that the command has to be executed from the root folder of the Flutter project? ie:

$ cd <path_to_flutter_project>/
$ flutter attach --device-id=flutter-tester --debug-uri http://127.0.0.1:40409/k8IUol2dnPI=/

from flutter-embedded-linux.

HidenoriMatsubayashi avatar HidenoriMatsubayashi commented on August 15, 2024 1

when building the embedder with -DCMAKE_BUILD_TYPE=Debug this would generate the debug symbols for the embedder itself, right?

You are right.

maybe it will be good to add the note that the command has to be executed from the root folder of the Flutter project?

Exactly.

I'll update READMEs again.

from flutter-embedded-linux.

psstoyanov avatar psstoyanov commented on August 15, 2024 1

Looks good! Thank you, @HidenoriMatsubayashi , @Mai-Matsuura !

Will close this ticket now.

from flutter-embedded-linux.

HidenoriMatsubayashi avatar HidenoriMatsubayashi commented on August 15, 2024

Thank you for your report. I'll update README.

from flutter-embedded-linux.

HidenoriMatsubayashi avatar HidenoriMatsubayashi commented on August 15, 2024

I've added the debug mode. You can use cmake -DUSER_PROJECT_PATH=examples/flutter-drm-backend -DCMAKE_BUILD_TYPE=Debug .. to get gather logs and so on.

from flutter-embedded-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.