softwareCobbler / luceedebug

line debugger for lucee
GNU Lesser General Public License v2.1
44 stars 15 forks source link

Enable VS Code hover evaluation when debugging #48

Closed mhuttenlauch closed 11 months ago

mhuttenlauch commented 11 months ago

This commit adds functionality to display the variable contents when hovering over the names. I find it easier than setting up watches when step debugging.

This example shows hovering over an entire struct: Screenshot 2023-09-21 160859

and this for a struct key access: Screenshot 2023-09-21 160920

It could use some polishing in determining what to show (e.g hovering over local. should show local scope, local.theData should show the struct etc) as well as ironing out the kinks I mentioned in the function comment.

Tested against the most recent Lucee 5.3 and 5.4 releases.

softwareCobbler commented 11 months ago

lgtm! will merge this in, pending minor review fixups. Thanks for the contribution.