Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Unbale to inspect parameters in Add method from initializer

Open M0n7y5 opened this issue 4 years ago • 6 comments

I have this code

var json2 = JsonVariant() { 2, 44, 65 };
defer json2.Dispose();

Each value in initializer will call Add method with parameter 2 inside JsonVariant, but when debugging i am unable to inspect value of that paramater. But the value is there i can work with it just fine.

obrazek

NOTE: that value 2 is implicitly casted to another JsonVariant.

M0n7y5 avatar Nov 05 '21 15:11 M0n7y5

This isn't sufficient information to reproduce the bug.

bfiete avatar Nov 05 '21 15:11 bfiete

IE: the actual code

bfiete avatar Nov 05 '21 15:11 bfiete

Oh sorry i am gonna reproduce this in different project and i am gonna post it here ASAP

M0n7y5 avatar Nov 05 '21 20:11 M0n7y5

Ok so i am unable to reproduce this in different project. So it looks like its project wise issue. I am gonna clear my project and attach it here once i am done.

M0n7y5 avatar Nov 06 '21 16:11 M0n7y5

So in order to reproduce this bug:

  1. Download repo from this branch https://github.com/M0n7y5/BJSON/tree/DebugIssue
  2. Load workspace and add breakpoint to Add method in JsonVariant like this image
  3. Start debugging, hit that breakpoint and try to inspect content of Add parameter. You should see something like this: image

M0n7y5 avatar Nov 06 '21 16:11 M0n7y5