scalacenter / student-projects

The list of the available projects at the Scala Center for bachelor and master students.
8 stars 0 forks source link

Inspecting the value of a function variable in the debugger #17

Open adpi2 opened 12 months ago

adpi2 commented 12 months ago

Summary

When debugging a higher-order function, a method that takes a function as parameter, it would be very useful to inspect the value of the function argument as code.

image

image

In the above example, I am debugging a higher order function mapconserve. In the variable view of the debugger I can see the variable f but I cannot see where it was created and what is its implementation.

The goal of this project is to find and display more information about function variables:

Supervisor

Adrien Piquerez(adrien.piquerez@epfl.ch): Tooling Engineer at the Scala Center

Expected Outcome

Explore the feasibility of this feature: does the JVM expose enough information to implement the feature: target class, and target method of the lambda? If feasible implement the feature in the scala-debug-adapter, and cover with unit tests. Explore different ways to show the function definition to the user: clickable path to the source definition, formatted tree...

Stuce-bot commented 11 months ago

Hello, I would be interested in doing this as a bachelor project next semester (spring). What would be the conditions to apply ? Greetings, Fabrice Saucy (fabrice.saucy@epfl.ch)