☂️ [vm/ffi] Multi language debugging #55832
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
type-enhancement
A request for a change that isn't a bug
Now that Dart has interoperability with C through
dart:ffi
, C++/Rust/Go (when using extern C), Objective-C through FFIgen, Java/Kotlin through JNIgen, we should see if we can improve the debugging experience.Current situation
Basically, there are currently two approaches that are combined in a debugging session:
A typical debug session looks like the following:
Goal user experience
The north star goal would be to have a debugging experience in which:
Details
We need to investigate what technical approach to take here. Does something such as a multi-language debug info or debugging protocol already exist? (We have considered in the past to make Dart output the dwarf debuginfo so that C/C++ debuggers can understand dwarf. But typical C/C++ debuggers don't deal well with a JIT compiled language, so it would only help for AOT. And going that direction would only help for C/C++/Obj-C/Rust/Go + Dart debugging, not for JVM based languages.)
Filing this as an umbrella issue. Happy for people to post feature requests or suggestions on how to tackle this problem. We will likely split this issue out in smaller tasks later.
Some related issues:
Pointer
inspect memory pointed to. #48882The text was updated successfully, but these errors were encountered: