You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the watch list, when inspecting a variable, "public" is always a member of the tree.
So you would see...
Grandfather.public.Parent.public.Child
Adding the variable to the watch list would cause an invalid expression error unless the .public's were removed manually. Changing one line in my gdb.js fixes this, from:
const varObjName = watch_${exp.replace(/\./g, '__').replace(/\[/g, '_').replace(/\]/g, '_')};
to:
The text was updated successfully, but these errors were encountered:
gigaj0ule
changed the title
Add to watch list fills in wrong variable name (in a different way)
Add to watch list fills in wrong variable name (in a different way) [fix included]
Apr 18, 2019
In the watch list, when inspecting a variable, "public" is always a member of the tree.
So you would see...
Grandfather.public.Parent.public.Child
Adding the variable to the watch list would cause an invalid expression error unless the .public's were removed manually. Changing one line in my gdb.js fixes this, from:
const varObjName = watch_${exp.replace(/\./g, '__').replace(/\[/g, '_').replace(/\]/g, '_')};
to:
const varObjName = watch_${exp.replace(/\./g, '__').replace(/\[/g, '_').replace(/\]/g, '_').replace(/\.(public)/g, '')};
The text was updated successfully, but these errors were encountered: